Skip to content

Tag: sql-server

Single Item Order – AdventureWorks

I am wondering if my answer works for this problem? The answer I was able to find on the internet seems similar but they join another table which seems ambiguous. Question: A “Single Item Order” is …

Why we need a primary key?

I am reading about primary keys and at a lot of tutorials, technical blogs etc., and I found that a primary key cannot be null. I think it’s totally wrong because I was able to insert null value in the column. I suppose a primary key can have a not null value only if the column is declared as not

If null in one table select from Other

I have 2 tables inquiry and Application table I want to build a view that contains the user information based on data from these two tables. Example I Have Table Inquiry FirstName, LastName, Address, email I have table Application FirstName, LastName, Address, email Am querying the tables using the email fiel…

Query response in JSON format without column name

My table schema is something like this, Initially, my procedure was returning with data as After processing the data, to the web page is sent as If I use the result will be like So what I need to get is the same response but without column name, as front-end lib uses the JSON array without keys. SQL Server ve…