Skip to content

Tag: sql

Returning values from 2 select statements in Oracle Procedure

Homework question that I’m stuck on. I need to create a Procedure called dept_info with a department id as the IN parameter with department name and full name (concat of first and last name) of the manager of that department as the OUT parameters to be passed back to the invoking program. the procedure …

SQL Query with Excel VBA

I’m trying to run a SQL query with Excel VBA. I got the query from someone else. When I run this query, I’m getting the following error message: “The SELECT statement includes a reserve word or an argument name that is misspelled or missing, or the punctuation is incorrect.” I can&#821…

how to replace ids with names in sql from another table?

I have a table passenger_count pas1_id pas2_id count 1 6 2 14 37 4 that connects by pas_id with another table passenger: id name 1 Bruce k 2 George L 3 Li Wo 4 Don Wa How to replace pas1_id, pas2_id with actual names from passenger table? This self join query does not work: Answer Just join passenger to passe…

Out of Range Error while inserting into a MySQL decimal column

I have this tabular structure: I get an error when i try to insert a specific set of value, query with those values is as below: For longitude with value -161.9722021 it is throwing me an error, values less than 100 value were successfully inserted. I don’t see the value being out of range, the value i …