SRM eLab Solutions
  • Home
  • About
  • Contact
  • Home
  • DBMS 2021
  • _Session - 1
  • _Session - 2
  • _Session - 3
  • _Session - 4
  • _Session - 5
  • _Session - 6
  • _Session - 7
  • _Session - 8
  • _Session - 9
  • _Session - 10

Ad Code

DBMS - SECTION 3 - Advance Select - 2

 

  • Employee Salaries.
  • Higher than 75 Marks.
  • Weather Observation - Vowels.
  • Employee Names.
  • Weather Observation - Even Numbers.
  • Weather Observation Station 12.
  • Triangles.
  • The PADS

Post a Comment

8 Comments

  1. guywithnojobMarch 12, 2021 at 12:05 AM

    PLEASE leave your QUESTION that need to be uploaded or
    IF ANYTHING IS MISSING please leave it in the comments.

    ReplyDelete
    Replies
    1. I_came_like_a_king_left_like_a_legendMarch 22, 2021 at 9:50 PM

      Q; The PADS

      Generate the following two result sets:

      Query an alphabetically ordered list of all names in OCCUPATIONS, immediately followed by the first letter of each profession as a parenthetical (i.e.: enclosed in parentheses). For example: AnActorName(A), ADoctorName(D), AProfessorName(P), and ASingerName(S).
      Query the number of ocurrences of each occupation in OCCUPATIONS. Sort the occurrences in ascending order, and output them in the following format:

      There are a total of [occupation_count] [occupation]s.
      where [occupation_count] is the number of occurrences of an occupation in OCCUPATIONS and [occupation] is the lowercase occupation name. If more than one Occupation has the same [occupation_count], they should be ordered alphabetically.

      Note: There will be at least two entries in the table for each type of occupation.

      Input Format




      The OCCUPATIONS table is described as follows: Occupation will only contain one of the following values: Doctor, Professor, Singer or Actor.

      Sample Input

      An OCCUPATIONS table that contains the following records:




      Sample Output

      Ashely(P)
      Christeen(P)
      Jane(A)
      Jenny(D)
      Julia(A)
      Ketty(P)
      Maria(A)
      Meera(S)
      Priya(S)
      Samantha(D)
      There are a total of 2 doctors.
      There are a total of 2 singers.
      There are a total of 3 actors.
      There are a total of 3 professors.
      Explanation

      The results of the first query are formatted to the problem description's specifications.
      The results of the second query are ascendingly ordered first by number of names corresponding to each profession(2<=2<=3<=3) and then alphabetically by profession. (doctor<=singer) and (actor<=professor)

      Delete
      Replies
        Reply
    2. Reply
  2. I_came_like_a_king_left_like_a_legendMarch 21, 2021 at 10:07 PM

    Q; The PADS

    Generate the following two result sets:

    Query an alphabetically ordered list of all names in OCCUPATIONS, immediately followed by the first letter of each profession as a parenthetical (i.e.: enclosed in parentheses). For example: AnActorName(A), ADoctorName(D), AProfessorName(P), and ASingerName(S).
    Query the number of ocurrences of each occupation in OCCUPATIONS. Sort the occurrences in ascending order, and output them in the following format:

    There are a total of [occupation_count] [occupation]s.
    where [occupation_count] is the number of occurrences of an occupation in OCCUPATIONS and [occupation] is the lowercase occupation name. If more than one Occupation has the same [occupation_count], they should be ordered alphabetically.

    Note: There will be at least two entries in the table for each type of occupation.

    Input Format




    The OCCUPATIONS table is described as follows: Occupation will only contain one of the following values: Doctor, Professor, Singer or Actor.

    Sample Input

    An OCCUPATIONS table that contains the following records:




    Sample Output

    Ashely(P)
    Christeen(P)
    Jane(A)
    Jenny(D)
    Julia(A)
    Ketty(P)
    Maria(A)
    Meera(S)
    Priya(S)
    Samantha(D)
    There are a total of 2 doctors.
    There are a total of 2 singers.
    There are a total of 3 actors.
    There are a total of 3 professors.
    Explanation

    The results of the first query are formatted to the problem description's specifications.
    The results of the second query are ascendingly ordered first by number of names corresponding to each profession(2<=2<=3<=3) and then alphabetically by profession. (doctor<=singer) and (actor<=professor)

    ReplyDelete
    Replies
    1. GuywithnojobMarch 22, 2021 at 11:13 PM

      We will Try bro

      Delete
      Replies
        Reply
    2. GuywithnojobApril 6, 2021 at 11:56 PM

      We have uploaded answer for THE PADS

      Delete
      Replies
        Reply
    3. Reply
  3. Athreya.March 23, 2021 at 12:05 AM

    Weather Observation Longest
    Query the two cities in STATION with the longest, as well as their lengths (i.e.: number of characters in the name). Input Format The STATION table is described as follows: Input Fornmat The STATION table is described as follows:

    ReplyDelete
    Replies
      Reply
  4. AnonymousMarch 23, 2021 at 12:08 AM

    Need answers for weather Observation Longest and shortest and also for The Pads

    ReplyDelete
    Replies
      Reply
  5. SEENUOctober 27, 2021 at 9:41 PM

    SESSION NAME:Advance Select - 2
    QUESTION NAME: Weather Observation - Shortest Query 4
    TABLE DESCRIPTION
    Query the two cities in STATION with the shortest names, as well as their respective lengths (i.e.: number of characters in the name). If there is more than one smallest choose the one that comes first when ordered alphabetically.

    Input Format

    The STATION table is described as follows:
    Input Format

    The STATION table is described as follows:



    where LAT_N is the northern latitude and LONG_W is the western longitude.

    Sample Input

    Let's say that CITY only has three entries: DEF, ABC, and WXY

    Sample Output

    ABC 3

    Explanation

    When ordered alphabetically, the CITY names are listed as ABC, DEF, and WXY, with the respective lengths 3, 3, and 3. But there are 3 options for shortest-named city; we choose ABC, because it comes first alphabetically.

    ReplyDelete
    Replies
      Reply
Add comment
Load more...

Search This Blog

Tags

  • DBMS
  • Session-1
  • Session-10
  • Session-2
  • Session-3
  • Session-4
  • Session-5
  • Session-6
  • Session-7
  • Session-8
  • Session-9

Categories

Ad Code

SRM eLab Solutions

"People who copy you will always be one step behind"

Footer Menu Widget

  • Home
  • About
  • Contact Us
Designed with by Way2Themes | Distributed By Gooyaabi Themes