[Solved] What does @ mean when creating a SQL query with C#? [duplicate]

It’s a bound parameter marker. You’ll need to list all bound parameters in the Parameters collection. Using bound parameters as opposed to just constructing the SQL text directly helps with security (prevents injection attacks) and performance. solved What does @ mean when creating a SQL query with C#? [duplicate]

[Solved] Pls can you help me? [closed]

Try this: select count(*) from ibc_offer where DEACTIVATION_DTTM > TO_DATE(’31/12/9999 23:00:00′,’dd/mon/yyyy HH24:MI:SS’) and DEACTIVATION_DTTM < TO_DATE(’31/12/9999 23:59:59′,’dd/mon/yyyy HH24:MI:SS’); What is the mistake in your query? you missed date keyword in the second comparison after and. Your query should be like below: select count(*) from ibc_offer where DEACTIVATION_DTTM > date(‘31.12.9999 23:00:00′,’DD.MM.YYYY HH:MI:SS’) and DEACTIVATION_DTTM < date(‘31.12.9999 … Read more

[Solved] How to delete a Product

Maybe you should first read the documentation of using CosmosDB: here On this page you can see how you can query your product and then delete this record from your collection: var query = client.CreateDocumentQuery<YourDocumentModel>(UriFactory.CreateDocumentCollectionUri(databaseName, collectionName), “<your sql>”, queryOptions); with this result you can update the object (yourDocumentModelObject) and remove the product from the subcategory. … Read more

[Solved] How to create a stored procedure for select/update/delete statements

As David said you are almost there but just need minor changes. I suppose @Pid is a parameter,if so, it is missing from the Stored Procedure defintion. The (and specialistId=@Pid and iscompleted =1) form the Where clause (Filter expression). So the procedure goes like this ` CREATE PROCEDURE PROCD1 (@PID INT ) AS BEGIN SELECT … Read more

[Solved] Improve SQL Server query

I ran your query through a code formatter to help clean it up. I also change the variable declaration since you didn’t seem to understand what I was saying. For the record, the way you had it coded you might have missed some rows in the last few milliseconds of the day. I changed the … Read more

[Solved] how to group by

WITH sample_data AS (SELECT 1 AS id, 10 AS age, 11 AS name, ‘A’ AS type FROM dual UNION ALL SELECT 2, 0, 1, ‘B’ FROM dual UNION ALL SELECT 3, 9, 11, ‘C’ FROM dual UNION ALL SELECT 4, 10, 11, ‘D’ FROM dual UNION ALL SELECT 5, 10, 11, ‘E’ FROM dual UNION … Read more