Consider the following schema. where the primary keys are given. Give an expression in SQL for each of the queries. Person ( FirstName:String, LastName:String, Age, Email: varchar) FacebookUser ( FbUserID: Integer, FbUserName:String, Email:varchar, Num_of_friend: integer, Num_of_pic: integer) WhatsAppUser (WhatsAppUserID: Integer, FBUserID: Integer, Cell_num: varchar, WhatsAppUserName:String , No_Of_Groups: Integer) Now, Give an expression in SQL for each of the queries. a) Find the Facebook user who shares the least number of pictures. b) Find the WhatsApp users who are GrameenPhone users (GrameenPhone numbers start with 017.... Or 013....) c) Show the details of your own Facebook account searching by your valid DIU Email. d) List the full names of Facebook users having gmail addresses in dictionary order based upon their names. e) Show all the details of those Facebook users whose number of friends is more than or equal to 500 but less than or equal to1000.

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter12: Subqueries And Merge Statements
Section: Chapter Questions
Problem 19MC
icon
Related questions
Question
Consider the following schema. where the primary keys are given. Give an expression in SQL for
each of the queries.
Person ( FirstName:String, LastName:String, Age, Email: varchar)
FacebookUser ( FbUserID: Integer, FbUserName:String, Email:varchar, Num_of_friend: integer,
Num_of_pic: integer)
WhatsAppUser (WhatsAppUserID: Integer, FBUserID: Integer, Cell_num: varchar,
WhatsAppUserName:String , No_Of_Groups: Integer)
Now, Give an expression in SQL for each of the queries.
a) Find the Facebook user who shares the least number of pictures.
b) Find the WhatsApp users who are GrameenPhone users (GrameenPhone numbers start with
017.... Or 013....)
c) Show the details of your own Facebook account searching by your valid DIU Email.
d) List the full names of Facebook users having gmail addresses in dictionary order based upon
their names.
e) Show all the details of those Facebook users whose number of friends is more than or equal
to 500 but less than or equal to1000.
Transcribed Image Text:Consider the following schema. where the primary keys are given. Give an expression in SQL for each of the queries. Person ( FirstName:String, LastName:String, Age, Email: varchar) FacebookUser ( FbUserID: Integer, FbUserName:String, Email:varchar, Num_of_friend: integer, Num_of_pic: integer) WhatsAppUser (WhatsAppUserID: Integer, FBUserID: Integer, Cell_num: varchar, WhatsAppUserName:String , No_Of_Groups: Integer) Now, Give an expression in SQL for each of the queries. a) Find the Facebook user who shares the least number of pictures. b) Find the WhatsApp users who are GrameenPhone users (GrameenPhone numbers start with 017.... Or 013....) c) Show the details of your own Facebook account searching by your valid DIU Email. d) List the full names of Facebook users having gmail addresses in dictionary order based upon their names. e) Show all the details of those Facebook users whose number of friends is more than or equal to 500 but less than or equal to1000.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
SQL Query
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr