Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

You must login to add post.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

mcqoptions.com

mcqoptions.com Logo mcqoptions.com Logo

mcqoptions.com Navigation

  • Home
  • About Us
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Contact Us
Home/ Questions/Q 481230
Next
In Process
Gulab Kumar
Gulab Kumar
Asked: 3 years ago2022-11-04T12:05:44+05:30 2022-11-04T12:05:44+05:30In: General Awareness

Consider the tables’Flights’ & ‘Fares’ given below:

                     Table: FLIGHTS

FLCODESOURCEDESTINATIONNO_STOPSNO_FLIGHTS
IC3O1MumbaiBangalore32
IC799BangaloreKolkata83
MC101DelhiVaranasi60
IC3O2MumbaiKochi14
AM812LucknowDelhi40
MU499DelhiChennai33

                           Table: FARES

FNOAIRLINESFARETAX
IC301Indian Airlines94255
1C799Spice Jet884610
MC101Deccan Airlines42107
IC302Jet Airways138945
AM1812Indian Airlines45006
MU499Sahara120004

With reference to these tables, write commands in SQL for (i) and (ii) and output for (iii) below:

(i) To display flight number source, airlines of those flights where fare is less than Rs. 10000.

(ii) To count total no of Indian Airlines flights starting from various cities.

(iii) SELECT FLIGFITS.FNO, NO_OF_FL, AIRLINES FROM FLIGHTS,FARES WHERE FLIGHTS. 

FNO = FARES.FNO AND SOURCE=’DELHI’;

Consider the tables’Flights’ & ‘Fares’ given below:

                     Table: FLIGHTS

FLCODESOURCEDESTINATIONNO_STOPSNO_FLIGHTS
IC3O1MumbaiBangalore32
IC799BangaloreKolkata83
MC101DelhiVaranasi60
IC3O2MumbaiKochi14
AM812LucknowDelhi40
MU499DelhiChennai33

                           Table: FARES

FNOAIRLINESFARETAX
IC301Indian Airlines94255
1C799Spice Jet884610
MC101Deccan Airlines42107
IC302Jet Airways138945
AM1812Indian Airlines45006
MU499Sahara120004

With reference to these tables, write commands in SQL for (i) and (ii) and output for (iii) below:

(i) To display flight number source, airlines of those flights where fare is less than Rs. 10000.

(ii) To count total no of Indian Airlines flights starting from various cities.

(iii) SELECT FLIGFITS.FNO, NO_OF_FL, AIRLINES FROM FLIGHTS,FARES WHERE FLIGHTS. 

FNO = FARES.FNO AND SOURCE=’DELHI’;

Parabola
  • 0
  • 11
  • 7
  • 0
  • 0
    • Report
  • Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp
Leave an answer

Leave an answer
Cancel reply

Browse

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. ba08a
    2022-11-10T08:44:21+05:30Added an answer about 3 years ago

    (i) select flights.fno,source,airlines from flights,fares where flight.fno=fares.fno and fare < 10000;

    (ii) select sum(no_of_fl) from flights,fares where flights.fno=fares.fno group by source having Airlines =’Indian Airlines’;

    (iii) MC101 6 Deccan Airlines MU499 3 Sahara

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 500k
  • Answers 393k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Aditi Dugal

    How to approach applying for a job at a company ...

    • 7 Answers
  • Raghavan Prasad Hayer

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Ankita Dinesh Biswas

    What is a programmer’s life like?

    • 5 Answers
  • 47e0c
    47e0c added an answer Correct Answer - Increasing the yield of animals and improving… November 12, 2022 at 9:56 am
  • b6699
    b6699 added an answer Sender\'s addressDateReceivers name and addressSubjectContentYours faithfullyName November 12, 2022 at 9:56 am
  • 10eb8
    10eb8 added an answer Any uncertinity in measurment is known as errorDifference in true… November 12, 2022 at 9:56 am

Related Questions

  • The units of length, velocity and force are doubled. Which ...

    • 1 Answer
  • The penetration of light into the region of geometrical shadow ...

    • 1 Answer
  • if ` veca , vecb ,vecc ` are three vectors ...

    • 1 Answer
  • What is the value of isothermal bulk modulus of elasticity ...

    • 1 Answer
  • निम्न में से किस अणु का सेवाधिक द्विध्रुव आघूर्ण है ...

    • 1 Answer

Top Members

Trending Tags

Class 11 Parabola Polity Polynomials Probability Projectile Protists Quadrilaterals Rario Reasoning Sampling Social Solutions Spectroscopy Switchgear Thermodynamic Tourism Transients Upsc Wbjee

Explore

  • Home
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Tags
  • Badges
  • Users

Footer

mcqoptions.com

About

MCQOptions.com

Here are the top interview questions, example answers, tips for giving the best response.

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Follow

© 2022 MCQOptions. All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.