Oh my goodness, its very very helpful... Many thanks to you.
@LearnatKnowstar Жыл бұрын
Thank you
@smcgpra38742 жыл бұрын
I learnt lot from this channel, good explanation ma'am
@LearnatKnowstar2 жыл бұрын
Glad to hear that
@amukelaniebenezer4062 жыл бұрын
Thanks for sharing
@LearnatKnowstar2 жыл бұрын
Thank you
@rk-ej9ep2 жыл бұрын
Nice ma'am..👍
@LearnatKnowstar2 жыл бұрын
Thank you
@abdullahquhtani42472 жыл бұрын
Excellent and will be great 💪🏼 if there is a way to loop all tables in a specific Database 🤔😏
@LearnatKnowstar2 жыл бұрын
Thank you. May need to write a stored procedure to loop through all table names.
@yallasailakshmankumar27142 жыл бұрын
You can use EXEC sp_MSforeachtable, example for records count,EXEC sp_MSforeachtable 'SELECT ''?'' TableName, Count(1) NumRecords FROM ?'
@kristyowens22842 жыл бұрын
Please share more SQL tips and tricks.
@LearnatKnowstar2 жыл бұрын
Sure. More sql tips coming soon.
@sivachandar5705 Жыл бұрын
As per your example from Tbl1, If I want to find demo in col1, col2, col2, col4, col5 ? Pls reply
@AnandKumar-dc2bf2 жыл бұрын
Hi Mam! Can you do some mesium/ hard videos on sql leet code questions please...
@LearnatKnowstar2 жыл бұрын
Sure. We are planning something soon. Stay tuned 👍
@samarif64678 ай бұрын
Can I use it for NULL in each of the columns
@maheshp5244 Жыл бұрын
Hi , I want to find max date for each tables present in each schema how to write it dynamically
@avi80162 жыл бұрын
Great video ma'am One question where 'cancelled' in (col1,col2) is available just in SQL server or is it universal?
@LearnatKnowstar2 жыл бұрын
Thank you. Might not work in all databases.
@hoperight52802 жыл бұрын
I tried to perform it in pgadming and worked.
@siddheshamrutkar86842 жыл бұрын
Nice Video.. But what if want to find only the Cancelled then in that case only two columns should appear..
@LearnatKnowstar2 жыл бұрын
It will output the whole record because we are performing a Select *.
@rajeshbandari200419892 жыл бұрын
How to make this work in oracle
@LearnatKnowstar2 жыл бұрын
If this does not work in oracle, then an or in where clause can always be used to compare each and every column value.
@nakuldeep7336 Жыл бұрын
Select gold as Player,count(1) from events k where not Exists (Select * from events p where k.gold=p.silver) and not exists (Select * from events C where k.gold=C.BRONZE) group by GOLD
@nikolaybaranov22132 жыл бұрын
Yes, this script is functional. But: 1. Dynamic queries are evil. Supporting such code is very time consuming 2. Code is vendor dependent and not portable 3. I can hardly imagine a situation where the table name is known in the database, but the column names are unknown or they can change arbitrarily. The above example shows that the base is not even in second normal form. This is not a base, but complete chaos. Instead of writing queries to this database, I would rather quit.
@LearnatKnowstar2 жыл бұрын
Thank you for your comments. They are always insightful and knowledgeable. Yes, I agree this is not the best example of writing a code and should be used just as a quick trick for simpler requirements.