Skip to content Skip to sidebar Skip to footer
Showing posts from August, 2023

How To Search Date In Sql?

I am having an Event Management System in which i want, If an event is registered for 5 days (21 ja… Read more How To Search Date In Sql?

Is It Possible To Use Group_concat With Coredata?

I am really trying hard to use coredata with a new IOS application. A real challenge is that sinc… Read more Is It Possible To Use Group_concat With Coredata?

Proper Format For Sql Server Connection String On 1and1.com

I have spent several hours trying to search this on the web in addition to calling and emailing sup… Read more Proper Format For Sql Server Connection String On 1and1.com

Couting Combinations Within A Group

I need a way way to count combinations of code by patients, so I need to know based on this report … Read more Couting Combinations Within A Group

How To Find Duplicate Based Upon Multiple Columns In A Rolling Window In Pandas?

Sample Data {'transaction': {'merchant': 'merchantA', 'amount': 20,… Read more How To Find Duplicate Based Upon Multiple Columns In A Rolling Window In Pandas?

Sql, Keep Only Max Value And Delete Others

I have this sort of table : -id | name | memo -1 | Gotham | s1ep1 -2 | Gotham | s1ep3 -3 … Read more Sql, Keep Only Max Value And Delete Others

Importing Excel Errors, Odbc And Schema.ini

How can you overcome importing excel file errors? When the datatype is incorrectly determined it is… Read more Importing Excel Errors, Odbc And Schema.ini

Update A Column Field Using Inner Join Two Tables In Postgres And I Am Getting An Error: Table Name "tblfacultymaster" Specified More Than Once

UPDATE 'TblFacultyMaster' SET 'TblFacultyMaster'.teacher_id = teacher_details.tea… Read more Update A Column Field Using Inner Join Two Tables In Postgres And I Am Getting An Error: Table Name "tblfacultymaster" Specified More Than Once

Split Comma Seprate Value From Table In Sql Server

i have one SQL table in which many records, i want to know how many names are in it and how much ti… Read more Split Comma Seprate Value From Table In Sql Server

Sqlite Query Less Than Or Greater Than Check

I want to use this: return mDb.query(DATABASE_TABLE, new String[] { KEY_ROWID, KEY_LEVEL }, KEY_LE… Read more Sqlite Query Less Than Or Greater Than Check

Keeping Update Changes For Each Column

I've been asked by my client to manage update history for each column/field in one of our SQL S… Read more Keeping Update Changes For Each Column

Extracting Just Date From Returned Date And Time By Sql Server To Show In Web Pages

I retrieve the date from sql server and want to display the date as 'November 20, 2014' in … Read more Extracting Just Date From Returned Date And Time By Sql Server To Show In Web Pages

Get First Day Of Week T-sql

How get first day of week (Monday) where week = 6 and year = 2020 I need get 10.02.2020 eg. week 1 … Read more Get First Day Of Week T-sql

Mysql Join Tables And Count Instances

Lets say I have the following tables: Countries --------------------------- | ID | Country Name … Read more Mysql Join Tables And Count Instances

Cannot Get Variable From Child Back To Parent In Java (options Window)

STARTED - 3:00PM UPDATE 1 - 5:36PM Apply Button in the Option() class: private void cmdApplyAc… Read more Cannot Get Variable From Child Back To Parent In Java (options Window)

How Do I Find Out When A Stored Procedure Was Last Modified Or Compiled In Oracle?

I'm preferably looking for a SQL query to accomplish this, but other options might be useful to… Read more How Do I Find Out When A Stored Procedure Was Last Modified Or Compiled In Oracle?

Mysql Select Subquery If Exists

I have 3 tables ....users, updates and bumps. I want to return the user making the api request a fe… Read more Mysql Select Subquery If Exists

How Can I Reset Identity Column Of My Table In Sql Server?

How can I reset my IDENTITY column in my already populated table? I tried something like this, but … Read more How Can I Reset Identity Column Of My Table In Sql Server?

Sum Of Child Levels Total In A Hierarchy

I need to have each level be the sum of all children (in the hierarchy) in addition to any values s… Read more Sum Of Child Levels Total In A Hierarchy

How Do I Connect To Sql Server Running Inside Docker On Mac Using Python3?

I want to connect to my SQL Server database running in a Docker container using Python. Currently, … Read more How Do I Connect To Sql Server Running Inside Docker On Mac Using Python3?

Order By Day_of_week In Mysql

How can I order the mysql result by varchar column that contains day of week name? Note that MONDAY… Read more Order By Day_of_week In Mysql

Give Priority To Data From Specific Datasource

I have data as below ID Name Description DataSource Year 1 Appl… Read more Give Priority To Data From Specific Datasource

Asp.net Create Many To Many Entity In C#

I'm trying to create an many to many entity in asp.net C#. I have looked at the student/course … Read more Asp.net Create Many To Many Entity In C#

Select Query To Results All 12 Months Even If Data Not Exist

I'm trying to fetch out all month names with the value of zero if data does not exist. Here is … Read more Select Query To Results All 12 Months Even If Data Not Exist

Ssrs 2005 Find Name Of Column With Max Value

The column on the far right is what I'm trying to add to my report. Is this possible to do with… Read more Ssrs 2005 Find Name Of Column With Max Value

Can I Create Dynamic Pivot Query From Key Value Table With Different Data Types?

I have a key-value pairs table. I have created a script using dynamic sql that pivots the table cor… Read more Can I Create Dynamic Pivot Query From Key Value Table With Different Data Types?

Problems Using Batch_update In Codeigniter

I read similar batch_update Qs but I still have issues. Thanks in advance for help! I receive error… Read more Problems Using Batch_update In Codeigniter

Passing Uniqueidentifier Parameter To Stored Procedure

I am trying to pass a uniqueidentifier parameter to a stored procedure using the following code: my… Read more Passing Uniqueidentifier Parameter To Stored Procedure

Php/mysql - Incrementing Variable Name To Loop For Data

I have rows in my teams table named player1, player2, player3 ... player12. In PHP script i set the… Read more Php/mysql - Incrementing Variable Name To Loop For Data

Sql Order By List Of Strings?

I wish to do a select on a table and order the results by a certain keyword or list of keywords. Fo… Read more Sql Order By List Of Strings?

Count, Order Desc And Select Top 5

SQL Server 2012 We have a table, like such: ticket, type ------------------ 1234, hardware 1543, so… Read more Count, Order Desc And Select Top 5

How To Do Equivalent Of "limit Distinct"?

How can I limit a result set to n distinct values of a given column(s), where the actual number of … Read more How To Do Equivalent Of "limit Distinct"?

Mysql Split By Time Range

I have a view which has two columns as below: id hour_from hour_to 1 12:00 20:00 2… Read more Mysql Split By Time Range

Open Extern Sqlite-database In A Windows 8 Metro-app?

I use the 'Sqlite for Windows Runtime' and sqlite-net (just as described at http://timheuer… Read more Open Extern Sqlite-database In A Windows 8 Metro-app?

How To Use Java Variable To Insert Values To Mysql Table?

Hi i am trying to insert the values in to mysql table. i am trying this code. i have assigned value… Read more How To Use Java Variable To Insert Values To Mysql Table?

Why Does Select Results Differ Between Mysql And Sqlite?

I'm re-asking this question in a simplified and expanded manner. Consider these sql statements:… Read more Why Does Select Results Differ Between Mysql And Sqlite?

Improving Scalability Of The Modified Preorder Tree Traversal Algorithm

I've been thinking about the modified preorder tree traversal algorithm for storing trees withi… Read more Improving Scalability Of The Modified Preorder Tree Traversal Algorithm

Sqlite Update Field If Null From Another Table

I have a sqlite3 DB with a different tables. What I'm doing is to UPDATE the last inserted row … Read more Sqlite Update Field If Null From Another Table

Get Data Between The Dates

String Date1 = (((JTextField)jDateChooser1.getDateEditor().getUiComponent()).getText()); String Dat… Read more Get Data Between The Dates

Can Sql/access Display Foreign Key Rows As Columns?

I have an MS Access table that has a many-to-one key to another one, and I would like a query to di… Read more Can Sql/access Display Foreign Key Rows As Columns?

Vba Access Error 91

I try to run this code Public Sub Production_UpdateStatus(ByVal lngProductionId As Long, _ … Read more Vba Access Error 91

Converting A String To Xml Datatype Before Querying In T-sql

How do I convert a string into an XML datatype so that I can query the data as XML: For example (th… Read more Converting A String To Xml Datatype Before Querying In T-sql

Keep Text Formatting In Sql

I have a text area that inserts its content into a SQL table. Is there a way to keep the formatting… Read more Keep Text Formatting In Sql

Vertica: How Can You Concate Values By Some Order?

Suppose you have columns ID | A | B | C 1 | 3 | 1 | 2 2 | 5 | 9 | 1 3 | 1 | 2 | 3 and you want… Read more Vertica: How Can You Concate Values By Some Order?

Undefined Index Error Message Php

I'm trying to insert some items from a form into my table which is called products. The form lo… Read more Undefined Index Error Message Php

Wrong Object_name And Definition Relationship In Sys.sql_modules And Sys.objects

I ran the following query SELECT sm.object_id, v1.object_name, o.type, o.type_… Read more Wrong Object_name And Definition Relationship In Sys.sql_modules And Sys.objects

Postgres Get First And Last Version For Individual Vendor

I have mapping table for RFQ(request for quotation) and Vendor's bid amount with version. Table… Read more Postgres Get First And Last Version For Individual Vendor

Oracle Sql | Modifying Data In Order By

following structure in a ORACLE table: FILE_NAME ----------- 12345_l.tif 12345_m.tif 12345_r.tif 12… Read more Oracle Sql | Modifying Data In Order By

How To Auto Increment Id Numbers With Letters And Numbers

How to Auto Increment ID Numbers with Letters and Numbers, example 'KP-0001' it will increm… Read more How To Auto Increment Id Numbers With Letters And Numbers

Logging Not Persisting When Exception Occurs In Method Executed In A Trigger

I have been stuck all day on this issue and cannot seem to find anything online pointing me to what… Read more Logging Not Persisting When Exception Occurs In Method Executed In A Trigger

Only Last Record From Custom Query

The following query return a list but I am only interested in the last element of the list. @Query… Read more Only Last Record From Custom Query

Range Fill Table

Good day! There is a table: CREATE TABLE table ( start_range varcahar2(10), end_range varcahar2(10… Read more Range Fill Table

How To Start Windows Service As Administrator Privileges

I have my own application server which is windows service who communicates with the sql server, in … Read more How To Start Windows Service As Administrator Privileges

Laravel Selectraw Vs Db:raw

First: DB::table('someTable') ->selectRaw('count(*), min(some_field) as someMin, ma… Read more Laravel Selectraw Vs Db:raw

Varbinary And Image Conversion

I have an Access front end that links to a SQL Server backend. There are 3 fields in a table that I… Read more Varbinary And Image Conversion