Skip to content

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…

SQL group by (count,sum)

Hello i need help abou SQL a have this table and i need this result. thanks for your attention and your answers. select to_char(r.date,’yyyy’) YEAR, sum(1), sum(r.cafe) cafe, sum(r.drink) drink, …

How to assign @variables in tableau

I am trying to use the following in Tableau to declare date variables, which I later call them in the SQL code. But I am unable to do the same in Tableau. Can you please help/guide me in the right …