Infosys SQL Interview Question

Publié le: 01 septembre 2024
sur la chaîne: Cloud Challengers
95,683
1.8k

SQL questions recently asked in Infosys interview. We need to find origin and final destination details.
To find out the expected output, I use joins.

--Create table syntax
CREATE TABLE Flights (cust_id INT, flight_id VARCHAR(10), origin VARCHAR(50), destination VARCHAR(50));

-- Insert data into the table
INSERT INTO Flights (cust_id, flight_id, origin, destination)
VALUES (1, 'SG1234', 'Delhi', 'Hyderabad'), (1, 'SG3476', 'Kochi', 'Mangalore'), (1, '69876', 'Hyderabad', 'Kochi'), (2, '68749', 'Mumbai', 'Varanasi'), (2, 'SG5723', 'Varanasi', 'Delhi');


For more SQL interview questions. Check out our playlist.
   • SQL Interview Questions  


Contact us:
info@cloudchallengers.com

Follow us on
Instagram : instagram.com/cloudchallengers
Facebook : facebook.com/cloudchallengers
LinkedIn : linkedin.com/company/cloudchallengers


Sur cette page du site, vous pouvez voir la vidéo en ligne Infosys SQL Interview Question durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Cloud Challengers 01 septembre 2024, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 95,683 fois et il a aimé 1.8 mille téléspectateurs. Bon visionnage!