i'm pretty new to the sql world and i've seem to run into a roadblock. Multiple conditions seems to be a regular question but I couldn't find a thread ...
i'm pretty new to the sql world and i've seem to run into a roadblock. Multiple conditions seems to be a regular question but I couldn't find a thread ...
I used case function to bucket aggregate counts of an item and want to divide the sum total of all counts into the value for each bucket (looking to h ...
Using SQL developer, I have a column name 'Service Completed' which has a date and time but I extracted into hours and minutes only. With the hour and ...
I want to ask you for help about the CASE statement in WHERE clause. I want to achieve to get rows where SEMI_GV column with value 'SEMI' if descript ...
I have a query where I am calculating the difference between multiple date/times using a function. It returns the time between the 2 dates (imported_d ...
I am writing a query in SQL Server wherein I'm attempting to generate a data indicator based on multiple "fuzzy matched" criteria. Some example code t ...
I have the following table: AppId Id Direction Text Date aaa 11 in hello ...
I have 2 different table (Table A and Table B). Table A looks like this: enter image description here Table B looks like this: enter image descripti ...
I am looking for a way to do this in Terraform, if possible. Assume that ami and region are variables in the variable.tf file. (in pseudo-code) I k ...
How do I make a case statement inside another case statement. I need to find when condition1 = 77, then column value = y only if the y value is equal ...
I need to select the three month names, from previous quarter, and apply those month names in my where statement. I can't get the following to work: ...
I am trying SV code which involves both using priority and casez constructs together. What I want to achieve is based on the valid request available ( ...
I need to do this in formula(text) if custitem_prod_grade_field equals A then Pack/Batch Size equals custitem_unitsperpallet ELSE custitem10 * reorder ...
I am trying to show repeated column values with comma separated list by using listagg but getting error as "Not a single group by function". Hope I ge ...
I am trying to create computed column based on some conditions by using case statement. I am so close to goal but unable to see where the query is goi ...
Figured it out! I had quotes around the 'FulFillment Method' after the 'end as' part of the case expression. Once I removed the quotes it ran! I am g ...
I am learning SQL from an online tutorial series and in this video we learned how to use case statements. I understand how to use it, but then I thou ...
I'm testing query's speed in mysql 5.7. 1. Both query take a time 0.8sec ~ 1.1sec. Sometimes IF statement is faster and the other times C ...
Is there any short form for writing MySQL CASE statements as in PHP switch? For example, if i have: In PHP syntax we can write it in brief: I tr ...
My query was running fine, but after a adding a case statement I received an error on some of the column. QUERY with the case statement that I am rec ...