Skip to content

Inserting into table values found from previous query

I have table, let’s say ‘ROLEE’., which contain columns ROLE, ACCESSENTRY. I need to find first rows that ACCESSENTRY is equal to ‘A’ and for these rows insert into that table new rows with fetched ‘…

How to group by and sum in sql

I have tables like following one I’d like to extract customers who has product=a customer product score A a 10 A b 20 A c 30 B b 10 B …

SQL Query scenario

I have a SQL scenario. Could you please help me with the solutions for the same? I have 2 Tables Account & Credit_Score, with the schema as below. ————- Account Table ———-…

Stored procedure with 2 Like parameters

I am looking to use a stored procedure to filter my datagridview by either the user entering the part name into txtPartName or MRPID into txtMRPID. However, this is not filtering as expected and just …

Issue not getting a result when stuff is used

I am using the stuff function to create an comma separated value stuff works if I run it alone, but when I use in combination with another column to check against, it is failing. Is it due to datatype …