r/learnSQL • u/danyalghayas • Feb 22 '26
I have an SQL based exam!!!!
I have an exam in about 4 hours from now. It is of SQL and I'm not sure what kind of questions to expect because my instructor wasnt really clear with the instructions. The only instruction he gave us and was focused on was that all sorts of AI will be allowed during my exam. We can use whatever we want. That is a very scary sentence because if someone is making an exam and is allowing using all sorts of generative AI, he has made sure that it can't solve those questions either. *I need help*
18
Upvotes
23
u/magion Feb 23 '26
maybe you shouldn’t have skipped classes and studied. how are you coming to reddit 4 hours before you’re exam? this has to be entirely made up
2
u/FlySharp4527 Feb 23 '26
If this is for a class and you are fairly new, could it be possible he is doing this to show how much AI can get wrong instead of knowing the fundamentals?
13
u/murdercat42069 Feb 23 '26
Thoughts and prayers
12
u/phesago Feb 22 '26
you might be fucked fam. If you know basic sql and can think lightly on your feet you should be fine but if you dont know the basics and you have issues with tests... eesh. Come back when you have more time than you do now. Good luck <3
10
u/Rat_Man_420 Feb 23 '26
Select grade From professor Where grade = A
1
u/South-Yogurt-7002 Feb 23 '26
What exam is this?
1
u/imbeingsirius Feb 23 '26
I use AI to help me write sql queries all the time. I write what I want the query to do and then copy & paste the query I have, and ask what’s wrong.
Doesn’t mean it’s right but it’s a great place to start.
2
u/7977777777777777 Feb 23 '26
SQL is easy 👍 You can do this! If you dont know what to write try "SELECT" and theres a chance you will got some points for that.
2
u/DataCamp Feb 23 '26
So the post was made 10 hrs ago and we hope you did okay! Sharing a quick study plan/4hr rescue plan if you need it at some point, still (obviously, can be used with extended time frames haha):
How to use AI effectively (since it’s allowed)
Exam tactics for partial credit
Mini prompts to practice now
1
u/thesqlmentor Feb 23 '26
If your instructor is allowing AI but saying it won't solve the questions, he's probably testing whether you understand the output not just if you can generate it.
My guess is the questions will either be: explain what this query does and why, debug a broken query, or design a database schema for a specific business problem. Those are harder for AI because they require understanding not just syntax.
What I'd focus on in the next few hours: make sure you understand JOINs conceptually, know the difference between WHERE and HAVING, understand what GROUP BY actually does, and be able to read a query and explain it in plain English.
If he gives you AI generated code and asks you to review it, look for common mistakes like missing JOIN conditions, wrong aggregation logic, or queries that would return duplicates.
Also practice prompting the AI properly. If you just say write me a query you'll get garbage. You need to be specific about what tables, what columns, what business logic.
Good luck, you'll be fine. The AI is a tool but you still need to know enough to validate its output.
1
u/yinkeys Feb 23 '26
Drop the SQL questions here. Hope it went well ? You should’ve made this thread at least a day or two before the exam day. I’d have sent some Q’s
1
u/mikeblas Feb 24 '26
So how did it go? What were you asked?
1
u/Deltarayedge7 Feb 28 '26
Thoughts and prayers