Jump to content

SQL Quiz..


Recommended Posts

Posted

read the comments...in this tweet...

its worth reading these comments...

 

 

 

Posted
1 hour ago, dasari4kntr said:

read the comments...in this tweet...

its worth reading these comments...

 

 

 

I think query 2 as the values are filtered with id=data.id  

 

but in the first query all the records are pulled from the sub query so thats my take .. explain me if im wrong.

  • Upvote 1
Posted
1 hour ago, dasari4kntr said:

read the comments...in this tweet...

its worth reading these comments...

 

 

 

I will delegate this to my team :D

Posted
5 hours ago, dasari4kntr said:

read the comments...in this tweet...

its worth reading these comments...

 

 

 

First query but Depends on big table size 

Posted
9 hours ago, libraguy863 said:

I think query 2 as the values are filtered with id=data.id  

 

but in the first query all the records are pulled from the sub query so thats my take .. explain me if im wrong.

 

6 hours ago, jalsa01 said:

First query but Depends on big table size 

it depends on the nulls bro…

check the tweet comments…lot of good discussion…

  • 3 months later...
Posted
On 9/7/2023 at 8:54 AM, dasari4kntr said:

 

it depends on the nulls bro…

check the tweet comments…lot of good discussion…

ok

Posted

when i design a table...i always try to avoid nulls with default values...if possible..

 

null ...c0rrest dasari

Posted
1 hour ago, Mr Mirchi said:

when i design a table...i always try to avoid nulls with default values...if possible..

 

null ...c0rrest dasari

agree nulls should not be the default value 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...