Skip to content

SQL unpivoting columns

How to unpivot table: to this: What I have so far is : but this is giving me count for all months. I need this with month number and count value for that month. Values 1-9 could be any numbers. Answer Got it working with

Trying to Full Join two tables in MySql

I was trying to full join to tables as the code below, SELECT C.cust_name,O.ord_num FROM customers C FULL JOIN orders O ON C.cust_code = O.cust_code; but this code is not working.Is anyone can …

Oracle Database Object SQL query

In Oracle Database. There are two object tables SHOPS(S_NUM, S_NAME, TEL). And PRODUCTS(P_NUM, P_NAME, P_VAL, P_PRICE, SHOP_NUM). How to write in Oracle Object SQL language query to get how much there …