Question
Need Help in SQL Exercise 1-->List slPax.PaxID, slPax.PaxFirstName, and slPax.PaxLastName for passengers who do not have a lastname. Order the list by slPax.PaxID in ascending
Need Help in SQL Exercise
1-->List slPax.PaxID, slPax.PaxFirstName, and slPax.PaxLastName for passengers who do not have a lastname. Order the list by slPax.PaxID in ascending order.
2-->List slMaintenance.MaintenanceID, slMaintenance.MaintenanceCost, slMaintenance.Description for maintenance items that do not have a cost. Order the list by slMaintenance.MaintenanceID in ascending order.
3-->List slMaintenance.MaintenanceID, slMaintenance.MaintenanceCost, slMaintenance.Description for all maintenance items. Replace NULL values in MaintenanceCost with 0. Order the list by slMaintenance.MaintenanceID in ascending order.
4-->List slGearPurchase.GearPurchaseID, slGearPurchase.PurchaseAmount, slGearPurchase.Description for gear purchases that do not have a description. Order the list by slGearPurchase.GearPurchaseID in ascending order.
5-->List slGearPurchase.GearPurchaseID, slGearPurchase.PurchaseAmount, slGearPurchase.Description for all gear purchases. Replace NULL values in Description with NA (Not Applicable). Order the list by slGearPurchase.GearPurchaseID in ascending order.
6-->For repairs having supplierID 1501 OR 1517 OR 1518, list slRepair.RepairDate, slRepair.RepairCost, slRepair.SupplierID. Write this query using IN(). Order the list first by SupplierID in ascending order and then by repair cost in descending order.
7-->List slPax.PaxID, slPax.PaxFirstName, and slPax.PaxLastName for passengers with lastname Clark OR Sharma OR Patel. Write this query using IN(). Order the list by PaxID in ascending order.
8-->List slSupplier.SupplierID and slSupplier.SupplierName for suppliers whose SupplierID is unequal <> to 1502 AND 1506 AND 1510 AND 1512 AND 1518. Order the list by slSupplier.SupplierID in ascending order.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started