Baker Construction....................... SQL Screening
Baker Construction....................... SQL Screening
Baker Construction....................... SQL Screening
Instructions: Please precede all your answers with the question you are
answering.
Use acronyms only after you've explained them.
Use correct spelling and grammar.
Be sure to write your name and the interviewer’s name.
1. Are you currently employed? No, I was let go from last position 2023
Dec. because of company down-size.
3. What are the main qualities you look for in a new job? Top three qualities
that I look for in a new job are Learning opportunities, good team
cultures, and fair compensations.
4. What is the difference between CHAR and VARCHAR2 datatype in SQL?
I Think of CHAR like a ruler with fixed markings. When you say
CHAR(10), it's like having 10 slots whether you fill them or not. So, if you
store "hi" in a CHAR(10) column, it actually takes up 8 extra spaces (10 -
2 for "hi"). While for VARCHAR2, it adjusts its size based on what you
put in. So, if you have VARCHAR2(10) and put in "hi," it only uses 2
spaces, not 10. No extra spaces or padding. So, CHAR gives you fixed
slots, good for things like IDs or codes. VARCHAR2 is flexible, great for
text where the length varies like names or descriptions. CHAR can be a
bit faster for certain things, but VARCHAR2 saves space when you don't
need fixed lengths.
7. What is OLTP? And what are the differences between OLTP and OLAP?
OLTP (Online Transaction Processing) is all about handling everyday
transactions like sales, orders, and inventory updates in real time. It's
like the engine that keeps things running smoothly in a business. On the
flip side, OLAP (Online Analytical Processing) is more about diving deep
into data for analysis, reporting, and making big-picture decisions. It's
like having a powerful microscope to explore trends, patterns, and
insights from large datasets. The main difference? OLTP is for quick,
everyday transactions, while OLAP is for in-depth analysis and decision-
making.
8. What are some common clauses used with SELECT query in SQL?
When using the SELECT query in SQL, you often pair it with
different clauses to get the exact data you need:
- SELECT: It's like saying "Hey database, show me these columns."
FROM: Tells the database which table to look in for the data you want.
- WHERE: Adds conditions to filter the rows based on specific criteria.
- GROUP BY: Groups data based on common values in a column, often
used with aggregate functions like counting or summing.
- HAVING: Works with GROUP BY to filter grouped data based on
conditions.
- ORDER BY: Sorts the results in ascending or descending order based
on specified columns.
- DISTINCT: Gives you only unique values, removing duplicates from the
result set.
- LIMIT (or TOP): Sets a maximum number of rows to return from the
query.
These clauses help you fine-tune your SELECT queries to get precisely
the data you're looking for from the database.
9. List the different types of relationships in SQL.
- One-to-One (1:1) Relationship: In a one-to-one relationship, each record in one
table is related to exactly one record in another table. Example: A table for
employees and a table for their employee IDs and contact information. Each
employee has only one set of contact information.
14. How long would you expect to work for us if hired and how much will you
request per hour if you are hired? Personally, I don’t like changing my job
frequently. For compensation I am looking somewhere around 40-50
hourly rate.
15. When can you start working with us if we offer you this position?
I can start immediately if needed.
16. What is BLOB and TEXT in MySQL?
In SQL, BLOB and TEXT are data types used to store large amounts of
binary or text data. BLOB (Binary Large Object): It's used to store binary
data, such as images, audio/video files, or other non-textual data.
BLOBs can store large amounts of data, ranging from a few bytes to
gigabytes, depending on the storage engine and configuration.
TEXT: It's used to store large amounts of text data, such as long strings
of characters or documents. SQL provides different TEXT types based
on the maximum size of data they can store.
Responsibilities: