Does anyone know of a way to LAG in a specified order? In the example below, I provide a table with my current output [Lag (Current)] and my desired o ...
Does anyone know of a way to LAG in a specified order? In the example below, I provide a table with my current output [Lag (Current)] and my desired o ...
I am trying to figure out how to count all instances where a student is online without counting duplicate instances. For example, in the screenshot b ...
Im trying to change the value from the Merchant_Category_Code column. I tried CASE Statement but didn't work. Also,UPDATE but same result: Here ...
I am trying to learn sql and i have downloaded a world database. My problem is that i cannot find out how to pick the continents with more than 10 cou ...
I try to figure out, how I can get the penultimate workingday from todays date. In my query, I would like to add an where clause where a specific dat ...
I am new to C#, programming for less than a year. Until now I have been using the Micrsoft SQLHelper class. (copy of text header below) I recently cam ...
I have this code to upload CSV files into MySQL, I tried to upload the CSV files I created, but I keep getting this error when I run the code. The co ...
I need your help with this query. My table CSO_EMP_ORG_DPM_VIE has a column with different keys. Column name is EXT_KEY. When I receive the same key ...
This is a new issue of my previous question (C# Using Parameters in SqlHelper.DB). If I pass null as the parameters and set the command text to a para ...
Dears, Could you please help me to find a SQL tool that will show me the list of the tables that have relation with the parent table. Example: Sele ...
I'm trying to join these two tables together to show the record in base and the null in history. The problem I am having is with a left outer join. wh ...
I have a SQL table like this: ID is Identity column. And I have a class for this table in ASP.Net project like this: Also I have a stored proce ...
I am trying to show some data offline from SQLite database. Data is coming fine but I am not able to show that on listview with adapter. localQuest ...
I have a DataTable varriable in C# and I want to insert it to a ##TempTable in SQL Directly. I dont want to do like insert into ##TempTable row by row ...
Hi I've been working on this query, and I can't quite figure out the where statement to show only the average price of products < 3 "List each Pro ...
I'm having trouble with a pre Populated database in android. Not the usual problems though. I've got the database working just fine. My problem comes ...
I'm trying to remove duplicate code to connect to SQL database, create stored procedure parameters, etc. I found that SQLHelper class requires Enter ...
Currently I'm using SqlHelper.ExecuteDataSet(string storedProcedure, Object[] parameters); to retrieve data from the database. The issue resides in th ...
For the majority of the examples and tutorials I have seen it is always suggesting to execute SQL to Delete the table if it exists in the onUpgrade me ...
In a C# ASP.NET Web Application I'm structuring it with the web application on the top, and then multiple projects for handling business layers and a ...