There's a database. It has several tables. I need information from one primary table, a related detail table, and two lookup tables. The linked image below is a diagram of the database.
ERD for the quiz
Write me some stored procedures:
- Get all customers
- Get all customers whose customer name starts with 'Johnson'
- Get all customers whose address contains 'FL'
- Return a count of the number of orders per customer. I want the complete list of customers, even if they have zero orders.
- Get me all of the details about an order. If there is an id field, return the description from the related table, instead of the ID. I will provide the order ID I am interested in.
Seriously, there is a junior dev position open at my work. They are looking for someone with strong sql skills. This position will eventually grow into a development position. There aren't really any requirements (i.e. college degree); other than being pretty good at SQL.
If you are interested, leave a comment with your stored procs, or link to a text file that contains your stored procs.
1 comment:
Well hey...I was told all about this last night, so I got around to whipping up something. Worked the rust out of the SQL.
Here
Post a Comment