Тёмный

What is the difference between decode and case 

Siva Academy
Подписаться 48 тыс.
Просмотров 126 тыс.
50% 1

What is the difference between case and decode
List of all the SQL and PLSQL interview questions @ easy-learning-...

Опубликовано:

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 98   
@sampathkumar8392
@sampathkumar8392 3 года назад
Today I have faced interview and they have asked this question as well... Luckily I saw this video, before interview and immediately I have answered...Thanks A Lot dear for posting such a useful video... YOU WILL BE THERE IN EVERY CANDIDATE'S SMILE, WHEN THEY GET OFFER....
@SivaAcademy
@SivaAcademy 3 года назад
Its my pleasure 😊, best wishes bro 💐💐💐
@AliBaba-mx8of
@AliBaba-mx8of 2 года назад
Sir, thanks for the video.its helps alot.. Please post the query how to update 3 rows at one time with using decode and case clause.
@SivaAcademy
@SivaAcademy 2 года назад
Thank you
@shubhamsoni5883
@shubhamsoni5883 3 года назад
Can decode work with other datatype then String ?
@SivaAcademy
@SivaAcademy 3 года назад
Yes
@rkchannel1185
@rkchannel1185 3 года назад
Please make few videos on debugging ora errors by making anonymous block
@venugopal5547
@venugopal5547 5 лет назад
null=null is true when use decode function and it is false when use case statement
@vivektarab16
@vivektarab16 3 месяца назад
Start 0:09 - Decode and Case 0:45 - Understand Using Examples 2:00 - Same Thing Using Case Statement 2:45 - To Print Pass or Fail 4:01 - Exactly Same Functionality from Case statement 5:38 - Let us see with one more example 6:40 - Few more differences now 8:26 - Few More Example 9:25 - One more difference
@dhanarajurevu7379
@dhanarajurevu7379 4 месяца назад
How we can define parenthesis for each statement I have lot of confusion in defining parenthesis I.e,(commas,double quotes,colons,square brackets etc)
@manjunathreddy3484
@manjunathreddy3484 4 года назад
Hi sir, Thanks for uploading videos! could please help me on 1)How pipeline function will work 2)How to make the non partitioned table into to partitioned 3)How select * from emp (How internally worked (Capgemini asking)) 4)Performance tunning related real time eg we want 5) Different pragmas in oracle 6) can we create index on view 7)can we create index on Materialized view 8)Can we create trigger insdide the procedure or can we create the procedure inside the trigger 9)How to calculate age of the person
@m.s.k5300
@m.s.k5300 11 месяцев назад
Do we have any limit for decofe
@dineshkumar-vp9dm
@dineshkumar-vp9dm 5 лет назад
Pls explain the procedure in pragma autonomous transaction in plsql
@SivaAcademy
@SivaAcademy 5 лет назад
@Dinesh, will be posting soon on autonomous transaction, please stay tuned
@exploringeconomics8221
@exploringeconomics8221 6 месяцев назад
if else, case bit more advance
@rupadevarala9000
@rupadevarala9000 5 лет назад
Hi Sir Thank you for uploading useful videos like these Sir Can you please help to answer the below question... 1.How to debug the code??
@SivaAcademy
@SivaAcademy 5 лет назад
@Rupa, Sure, WIll post a seperate video on how to debug the code...Please stay tuned. Thanks for your comment....Siva
@ravivarma5094
@ravivarma5094 Год назад
Could u pls make a video on clustered index and non clustured index if already exity pls share link
@pavankumar-yv3gp
@pavankumar-yv3gp 2 года назад
Hi sir, when you use case in plsql in the declare section for variable you assigned value 'P' only but in the execution asking when 'F' then fail..... how it will work please explain
@Ammumin163
@Ammumin163 Год назад
Hi, Can you please post the local index and global index
@SivaAcademy
@SivaAcademy Год назад
Sure, please stay tuned
@AmritaSingh-of1du
@AmritaSingh-of1du 3 месяца назад
Thankuuu so much sir...u r doing great thing :)
@SivaAcademy
@SivaAcademy 3 месяца назад
Welcome
@ravivarma5094
@ravivarma5094 Год назад
Hi Sir, could u pls make a video on dirty read problem and their solution
@Ganeshay-996
@Ganeshay-996 2 года назад
what about sql psql online classes plan shiva sir ..
@SivaAcademy
@SivaAcademy 2 года назад
sure bro, pls stay tuned
@twinklesahoo4098
@twinklesahoo4098 5 лет назад
why decode works with select statement in plsql procedure? any specific reason. how does it work internally?
@seetamajhi9934
@seetamajhi9934 4 года назад
Loved all your tutorial videos and the in-depth knowledge you shared.. hope you share some videos on hints.. thanks 🙏
@SivaAcademy
@SivaAcademy 4 года назад
My pleasure, thank you 🙏, please stay tuned 👍
@gauravgiri5595
@gauravgiri5595 2 года назад
Hi Siva, Can you answer the below sql scenario based question. Write a SQL for below scenario - Table named Departures contains departure airport codes and Table named Arrival contains arrival airport codes.A person is travelling from airport A (&&dep) to airport B (&&arr),IF both the airport codes A and B are in Departures table, query should return D-DIF both the airport codes A and B are in Arrivals table, query should return A-AIF A is in Departures and B is in Arrivals table, query should return D-AIF B is in Departures and A is in Arrivals table, query should return A-D
@SivaAcademy
@SivaAcademy 2 года назад
Can you please put a sample data and expected output In excel format and send to my mail siva.k.academy@gmail.com, will post back once I am clear on requirement and expected output
@shreshlove
@shreshlove 2 года назад
Hi Sir Can we use both (case ,decode ) in where clause
@unmesh25
@unmesh25 3 года назад
Decode can not be used in WHERE clause, while CASE can be, correct me if wrong.
@lalatendupradhan525
@lalatendupradhan525 3 года назад
Both are working in where conditions
@jsocial25
@jsocial25 4 года назад
Case & decode are like switch statement in java/c. Case allow expression evaluation
@abhisheknegi8053
@abhisheknegi8053 4 года назад
Please make a video on joining methods like hash join ,nested loop and merge join although there are so many videos on you tube but there is no sense and hard to understand
@SivaAcademy
@SivaAcademy 4 года назад
Sure, please stay tuned, will cover in upcoming videos
@karkiashwin1174
@karkiashwin1174 4 года назад
Hello sir can u make some videos realted to plsql scheduling jobs and whats the neecessity of its in real practical life?
@SivaAcademy
@SivaAcademy 4 года назад
Sure please stay tuned
@gopalg7047
@gopalg7047 3 года назад
I really like your explanation...I should have viewd your videos in past which would be have been helpful to learn....I was expecting you to say how decode perform with order by clause in this video
@SivaAcademy
@SivaAcademy 3 года назад
Welcome bro
@shilpapatil7455
@shilpapatil7455 3 года назад
Which one is good in performance?
@bharathipandian45
@bharathipandian45 5 лет назад
Can't we use user definedfunction decode
@deepaksemur2243
@deepaksemur2243 2 года назад
Sir really ur videos very useful for the interviews..keep do well...we are all supporting u
@SivaAcademy
@SivaAcademy 2 года назад
Thank you very much bro
@sudhansupanda4891
@sudhansupanda4891 4 года назад
Can you please make video on Oracle server architecture with some best example
@SivaAcademy
@SivaAcademy 4 года назад
yeah, Please stay tuned.
@srikanthgandhi7289
@srikanthgandhi7289 5 лет назад
Nice Explanation
@SivaAcademy
@SivaAcademy 5 лет назад
Thank you 🙏
@vivekpampattiwar5193
@vivekpampattiwar5193 3 года назад
can we call procedure through decode function in oracle?-- can u please create a video on it or reply in comment
@SivaAcademy
@SivaAcademy 3 года назад
No, we cannot
@vivekpampattiwar5193
@vivekpampattiwar5193 3 года назад
@@SivaAcademy thanks sir for quick response
@sujaa1000
@sujaa1000 4 года назад
Awesome, thank you again Siva, your videos are the best! Regards, Sujaa
@SivaAcademy
@SivaAcademy 4 года назад
Thank you
@sbalajion
@sbalajion 5 лет назад
Can you discuss about the performance of the above functions?
@SivaAcademy
@SivaAcademy 5 лет назад
@Balaji, sure, will post performance in some other video, please stay tuned.
@12ravindrareddy
@12ravindrareddy 4 года назад
Hi Sir, How to display Male and female values one by one row in a table, need 10 rows like this, please advice with query
@SivaAcademy
@SivaAcademy 4 года назад
Hi, can you please paste the souce table sample data and expected output format
@12ravindrareddy
@12ravindrareddy 4 года назад
Output is below F M F M F M F M F M F M
@kartikjuneja7807
@kartikjuneja7807 2 года назад
select case employees when 'male' then 'M' when 'female' then 'f' else null end as result from employees
@prakashshinde2177
@prakashshinde2177 5 лет назад
Very good explanation. I never got such examples. Keep it up bro
@SivaAcademy
@SivaAcademy 5 лет назад
@Prakash, Thanks for your comment bro.
@tusharsonwane8468
@tusharsonwane8468 2 года назад
Thank you sir.. explain very nicely 🙏
@SivaAcademy
@SivaAcademy 2 года назад
Welcome bro
@kdeepika6482
@kdeepika6482 3 года назад
Hi sir your fantastic tq somuch for ur effort #deepika
@SivaAcademy
@SivaAcademy 3 года назад
Welcome 💐🙏
@manojkumarrajaka5204
@manojkumarrajaka5204 3 года назад
excellent bro...tq and love you
@SivaAcademy
@SivaAcademy 3 года назад
Welcome bro 💐💐💐
@vamshiellandula5263
@vamshiellandula5263 3 года назад
thq sir nice explaination
@SivaAcademy
@SivaAcademy 3 года назад
Welcome bro 💐🙏
@debayanpanigrahi6955
@debayanpanigrahi6955 4 года назад
decode can use in DML statement .
@srinivasreddy186
@srinivasreddy186 3 года назад
Yes, we can use it...
@sathiskumar7416
@sathiskumar7416 5 лет назад
I need a queries for continuously two columns to change the data using dual
@SivaAcademy
@SivaAcademy 5 лет назад
@Sharon, can you please elaborate your question with sample data and expected output
@sathiskumar7416
@sathiskumar7416 5 лет назад
@@SivaAcademy questions is column name payment status as values is 'sent' another one 'failed' and another column name is payment mode as 'web' and 'ivr' ...I want payment status sent then web and failed status then Ivr and again continuously payment mode web then D and ivr then I .....if you possible to get the records?
@SivaAcademy
@SivaAcademy 5 лет назад
Can you please post sample data and expected output you are looking for
@sathiskumar7416
@sathiskumar7416 5 лет назад
@@SivaAcademy can you please give me your number and then I will contact you
@ppothuri
@ppothuri 3 года назад
Awesome explanation.. thanks 🙏
@SivaAcademy
@SivaAcademy 3 года назад
Thank you 💐
@aakashdubey9653
@aakashdubey9653 5 лет назад
REALLY VERY NICE VIDEO, THANKS A LOT FOR EXPLANATION DEAR
@SivaAcademy
@SivaAcademy 5 лет назад
@Aakash, thanks for your comments bro 🙏
@ramus6188
@ramus6188 Год назад
Simply superb
@SivaAcademy
@SivaAcademy Год назад
Thank you
@rajt5218
@rajt5218 3 года назад
Excellent sir
@SivaAcademy
@SivaAcademy 3 года назад
Welcome Raj
@juno7893
@juno7893 4 года назад
Very nice. Thank you
@SivaAcademy
@SivaAcademy 4 года назад
It's my pleasure. Thanks for your comment :-)
@mkr7345
@mkr7345 4 года назад
Awesome explanation ... 👍
@SivaAcademy
@SivaAcademy 4 года назад
Thanks 🙂
@sateeshbabu5792
@sateeshbabu5792 4 года назад
Super sir
@SivaAcademy
@SivaAcademy 4 года назад
Welcome 🙏 bro
@sagarjadhav299
@sagarjadhav299 5 лет назад
Good information Provided
@SivaAcademy
@SivaAcademy 5 лет назад
Thank you :-)
@VishalShinde-kn8mi
@VishalShinde-kn8mi 3 года назад
Hi sir. Fantastic video. Thank you . 1) How to find current week number?
@SivaAcademy
@SivaAcademy 3 года назад
To_char(sysdate,'w') , this returns the week of month, for more details, you can look into ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-E0NKvwuJu5c.html
@faezehseyri593
@faezehseyri593 3 года назад
fantastic job!
@SivaAcademy
@SivaAcademy 3 года назад
Thank you!
@Cheema1111
@Cheema1111 3 года назад
Hi Siva, today in the interview they asked me that what if they dont want to use any of them,any substitute for case/decode?
Далее
50m Small Bike vs Car FastChallenge
00:22
Просмотров 3 млн
titan tvman's plan (skibidi toilet 77)
01:00
Просмотров 6 млн
SQL "difference between" interview questions (part 1)
8:20
50m Small Bike vs Car FastChallenge
00:22
Просмотров 3 млн