Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SHOW SQL CODE WITH OUTPUT Question 12: 1. Consider the following table: Column Name BusNo Origin Destination Rate Kilometer Start time Datatype NUMERIC VARCHAR VARCHAR

SHOW SQL CODE WITH OUTPUT

image text in transcribed

Question 12: 1. Consider the following table: Column Name BusNo Origin Destination Rate Kilometer Start time Datatype NUMERIC VARCHAR VARCHAR DECIMAL NUMERIC NUMERIC Size 4 10 10 Constraint Primary Key NOTNULL NOTNULL NOTNULL CHECK for >200 5,2 5 2.2 a) Write a SQL command to create the above table and insert suitable data. b) Find out the bus no which has the same destination like other bus but rate is greater than the other. c) Create a view bus consisting of busno, origin, destination, start_time of buses with destination as Agra

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions