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

Php Create Html Table From Database

Possible Duplicate: outputting values from database into html table PHP I am trying to create a t… Read more Php Create Html Table From Database

Doing Some Of Columns Based On Some Complex Logic In Pyspark

Here is the question in the image attached: Table: Row Col1 Col2 Col3 Result 1 10 … Read more Doing Some Of Columns Based On Some Complex Logic In Pyspark

Sql Grouping - Show Only 5 Comments Per Post

To make thing easier to understand lets take the following example: I want to show only the top 5 c… Read more Sql Grouping - Show Only 5 Comments Per Post

Parse Json Into Oracle Table Using Pl/sql

I have created the following script in order to read data from Mobile App DB (which is based on Mon… Read more Parse Json Into Oracle Table Using Pl/sql

To Retrieve Data From Parent-child Tables In A Flat Data Set

Due to a bad existing DB schema design, I have to write a select statement in a special way as show… Read more To Retrieve Data From Parent-child Tables In A Flat Data Set

How Can I Delete Duplicates In Sqlite?

I have a SQLite DB where the statement: SELECT messdatum, count(*) as anzahl from lipo GROUP BY … Read more How Can I Delete Duplicates In Sqlite?

Exclusive Access Could Not Be Obtained Because The Database Is In Use - But The Database Is Deleted

Has anyone run into this error even when the database is deleted? I deleted the database and checke… Read more Exclusive Access Could Not Be Obtained Because The Database Is In Use - But The Database Is Deleted

Slow Self-join Delete Query

Does it get any simpler than this query? delete a.* from matches a inner join matches b ON (a.u… Read more Slow Self-join Delete Query

Left Join Returning Duplicate Rows When There Is Match Between Two Tables And Match Is Not Null

I am trying to join two table using left join on following tables Account Table Zone ACC_NUM P… Read more Left Join Returning Duplicate Rows When There Is Match Between Two Tables And Match Is Not Null

Sum Price Of Childs In Other Table Mysql

I have two table one store data child and parent hierarchy and other paths and descendant +--------… Read more Sum Price Of Childs In Other Table Mysql

Linq Method Syntax For Multiple Left Join

Three tables are needed to be joined together. Table [Package] ID (int) ContainerID (int) Code (st… Read more Linq Method Syntax For Multiple Left Join

Database Backup Sql Query

I need to fetch data from database for backup in the form of insert statements I need to do it on a… Read more Database Backup Sql Query

How To Convert Date Into Month Number?

I have a column Month in my table. The month name and date are stored in this month column like Mo… Read more How To Convert Date Into Month Number?

How To Translate This Sql Query To Dql?

I have a lot of difficulties in trying to translate this SQL query to a DQL one (I am using Symfony… Read more How To Translate This Sql Query To Dql?

Python - Format Single Quote In Sql Statement Pyodbc

I already tried a couple of drivers: pymsql, pyobdc and still have issue with format single quote i… Read more Python - Format Single Quote In Sql Statement Pyodbc

Full-text Search Stemming Not Returning Consistent Results In Different Languages

I have an Sql Server 2016 database with full text indexes defined on 4 columns, each configured for… Read more Full-text Search Stemming Not Returning Consistent Results In Different Languages

Variable Table Or Column Names

INFORMIX-SQL or any other SQL-based DB: Suppose I have an app where depending on the value of some … Read more Variable Table Or Column Names

Dynamic Datasource In Sql Server Stored Procudure

I have a SQL Server that houses Several Databases. I have a Main Database that holds several tables… Read more Dynamic Datasource In Sql Server Stored Procudure

What Are The Best Sql Server Performance Optimization Techniques?

I've always taken the approach of first deploying the database with a minimal set of indexes an… Read more What Are The Best Sql Server Performance Optimization Techniques?

Offline Sync In Xamarin Forms Without Azure Mobile Service Client

I am new to Xamarin development. I am building a Xamarin application with RESTful API and using SQL… Read more Offline Sync In Xamarin Forms Without Azure Mobile Service Client

Do I Need To Use (int)$id Before I Use $id In Bindvalue In Php Pdo

I just started using Php Data Objects and one thing I'm not sure about is do I have to validate… Read more Do I Need To Use (int)$id Before I Use $id In Bindvalue In Php Pdo

Replace Empty Cells With Null Values In Large Number Of Columns

I have SQL table that has a large number of columns. For some reason, some columns have empty cells… Read more Replace Empty Cells With Null Values In Large Number Of Columns

Find The Last Time Table Was Updated

I want to retrieve the last time table was updated(insert,delete,update). I tried this query. SELEC… Read more Find The Last Time Table Was Updated

Postgresql Given "1,2,3,6,7,8,11,12,15,18,19,20", A Query To Return The Maximum Of Each Group Of Consecutive Numbers

given 1,2,3,6,7,8,11,12,15,18,19,20, write a query to return the maximum of each group of the conse… Read more Postgresql Given "1,2,3,6,7,8,11,12,15,18,19,20", A Query To Return The Maximum Of Each Group Of Consecutive Numbers

How To Execute A Raw Query With Returning In Sqlalchemy

I have a table Ticket that has the id (autoincremental), ticket_number (trigger that reads a sequen… Read more How To Execute A Raw Query With Returning In Sqlalchemy

Problem Using Sql Server Ce With Entity Framework Code-first And Asp.net Mvc 3 And Mvc Miniprofiler

I am attempting to create an ASP.NET MVC 3 application using C#, Entity Framework 4.0 code-first an… Read more Problem Using Sql Server Ce With Entity Framework Code-first And Asp.net Mvc 3 And Mvc Miniprofiler

Return All For Where In (1,2,3,3,3,1) Clause With Duplicates In The In Condition

I need to return all values for: select...where IN (1,2,3,3,3,1) I have a table with unique IDs. I … Read more Return All For Where In (1,2,3,3,3,1) Clause With Duplicates In The In Condition

Select First Row Of Group With Criteria

I have a table in this format: FieldA FieldB FieldC 1111 ABC X 1111 DEF Y 111… Read more Select First Row Of Group With Criteria

How Can I Easily Flatten This Sql Server Hierarchy Into An Inherited Inclusive List?

I have tables (for simplicity sake) as outlined below: Category -------------------- CategoryId (0 … Read more How Can I Easily Flatten This Sql Server Hierarchy Into An Inherited Inclusive List?

Wordpress - Acf - Get Post Multiple Times With Repeater Date Field

I have a custom post type koncerty with custom date field datum, and I'm currently retrieving t… Read more Wordpress - Acf - Get Post Multiple Times With Repeater Date Field

Maria Db How To Use Groups, Unions, And/or Sum/count In A Select Query

I've been breaking my mind for three days trying to puzzle this one out. I'm new to Maria d… Read more Maria Db How To Use Groups, Unions, And/or Sum/count In A Select Query

How To Continuously Delivery Sql-based App?

I'm looking to apply continuous delivery concepts to web app we are building, and wondering if … Read more How To Continuously Delivery Sql-based App?

Sequential Column Where Conditional - Sql / Access

Suppose we have some data that looks like so R_Id Nm Base Dest Proj Cust_id … Read more Sequential Column Where Conditional - Sql / Access

Violation Of Primary Key Constraint Query

I was wondering if anyone could help me with my SQL code below. I am trying to insert all of the re… Read more Violation Of Primary Key Constraint Query

How To Execute A Sql-server Function From Php?

I have function in MSSQL and I need to start that from PHP. My connection is ready, but I don't… Read more How To Execute A Sql-server Function From Php?

Sql Server Full-text Search Against Document (multiple Related Tables And Field)

I have a document (in this case Invoice) structure which contains multiple tables: Invoice Header … Read more Sql Server Full-text Search Against Document (multiple Related Tables And Field)

Retrieving Stored Procedure Script And Parameters Separately

I want to access the stored procedure script using C#. I used EXEC sp_HelpText STOREDPROCNAME. Th… Read more Retrieving Stored Procedure Script And Parameters Separately

How To Use Prepared Statements And Bound Parameters In Php Oci8

So using prepared statements and bound parameters is the suggested way for writing sql statements. … Read more How To Use Prepared Statements And Bound Parameters In Php Oci8

Why Am I Getting "timeout" And "cannot Find Table 0" And What Preventive Measures Are At My Disposal?

In the answer to a previous question here, I was advised to also ask about this related issue. Once… Read more Why Am I Getting "timeout" And "cannot Find Table 0" And What Preventive Measures Are At My Disposal?

Calling A Procedure Inside A Function Throws Mysql Error 1422

I am building a 'bank' as an assignment for a database course I am taking. I have created a… Read more Calling A Procedure Inside A Function Throws Mysql Error 1422

Ado Connection Timeout Problem

Using TADOConnection class to connect to SQL server 2005 db. Having ConnectionTimeOut := 5; // seco… Read more Ado Connection Timeout Problem

Why Cannot Create Global Temporary Table Or Truncate It When Call A Stored Procedure From C# Code?

I spent whole days and hours to investigate why cannot create temporary table when I call a stored … Read more Why Cannot Create Global Temporary Table Or Truncate It When Call A Stored Procedure From C# Code?

C# Displaying A Sql Database Object's Name In A Label.text Property On "selectedindexchanged" Event

I am trying to make a small contact book that takes contacts details from a mssql database.It has … Read more C# Displaying A Sql Database Object's Name In A Label.text Property On "selectedindexchanged" Event

Accessing Sql Filestream From Within A Clr Stored Procedure

I'm trying to access a Sql filestream from a CLR stored procedure. I've set up a very simpl… Read more Accessing Sql Filestream From Within A Clr Stored Procedure

Displaying Multiple Values Into Columns In Sql Server Using Pivot

declare @t table ( driver varchar(20), roadband varchar(20), category varchar(20), … Read more Displaying Multiple Values Into Columns In Sql Server Using Pivot

Sql - 2nd Highest Record In Table

SELECT MAX(Score) FROM Students WHERE Score Solution 1: With standard SQL, this is typically solve… Read more Sql - 2nd Highest Record In Table

Get The Count Of Rows Count After Group By

Here is the code I use in a Ruby on Rails project to find residences which have amenities with the … Read more Get The Count Of Rows Count After Group By

In Python's Sqlite3 Module, Why Can't Cursor.rowcount() Tell Me The Number Of Rows Returned By A Select Statement

So I've read the documentation and it says: Cursor.rowcount¶ Although the Cursor class of the … Read more In Python's Sqlite3 Module, Why Can't Cursor.rowcount() Tell Me The Number Of Rows Returned By A Select Statement

Error In Updating A Table Using Datetime As Parameter In Stored Procedure

The conversion of a char data type to a DateTime data type resulted in an out-of-range DateTime val… Read more Error In Updating A Table Using Datetime As Parameter In Stored Procedure

Error: Unknown Connection Option In Connection String: Attachdbfilename

Cant seem to get my connection string to work. app.config file: Solution 1: Turns out I was not u… Read more Error: Unknown Connection Option In Connection String: Attachdbfilename

System.security.securityexception With Clr Function

First off, Ill say that this issue is related to my previous post. However, I'll move everythin… Read more System.security.securityexception With Clr Function

Sql Server If Exists

I have to insert data into table but only if it does not already exist. I check for existing rows u… Read more Sql Server If Exists

Mssql - Making Multiple Count Distinct Calls In A Query Runs Slowly

I have tables with the following schema: Device DeviceId Name Service ServiceId Name Software … Read more Mssql - Making Multiple Count Distinct Calls In A Query Runs Slowly

Make A Query That Show Result In Another Column

i have a table like this : id - name - referred_id - referred_name 1 - mark - 100 - nick 2… Read more Make A Query That Show Result In Another Column

How Can I Keep Tblpurchase And Tblproductstock Table Without Drop. (i Need Keep Both Table And Value Permanent Without Drop)

How to change this stored procedure without drop tblPurchase and tblProductStock. When I run my pro… Read more How Can I Keep Tblpurchase And Tblproductstock Table Without Drop. (i Need Keep Both Table And Value Permanent Without Drop)

Ssis - Loop Through Text Files Sorted In Creation Order And Process Each Record On Each File As An Update Or An Insert Into A Sql Table

I need to create a process in SSIS that does the following: Get all text files in a specific direc… Read more Ssis - Loop Through Text Files Sorted In Creation Order And Process Each Record On Each File As An Update Or An Insert Into A Sql Table

Sql - Insert 1000 Values Fast

I have a file with 1000 rows of codes (ex:9111111000085 9111111000023 etc). What is the best way to… Read more Sql - Insert 1000 Values Fast

Sqlsrv Access Database And Tables That Have Spaces In Their Names In Php

I can access database and tables that don't have spaces in their names but when they do I can&#… Read more Sqlsrv Access Database And Tables That Have Spaces In Their Names In Php

Using Sql Server Express 2008 With Sql Server 2005 Database -how To Check For Compatibility

I am using SQL Server 2008 express edition but I want to make my databases still in 2005. How can I… Read more Using Sql Server Express 2008 With Sql Server 2005 Database -how To Check For Compatibility

Calculating Multiple Averages Across Different Parts Of The Table?

I have the following transactions table: customer_id purchase_date product category … Read more Calculating Multiple Averages Across Different Parts Of The Table?

Review Of Connection Handling And Data Access Layer Using C#, Sql Server Compact 3.5

I am developing a stand alone application, using sql server compact 3.5 sp2 which runs in process. … Read more Review Of Connection Handling And Data Access Layer Using C#, Sql Server Compact 3.5

Sql Pivot Query With Dynamic Columns

Possible Duplicate: T-SQL Pivot? Possibility of creating table columns from row values I've b… Read more Sql Pivot Query With Dynamic Columns

How To Do Incremental Loading In Sql Server

I have two tables product_source (with 50 records) and product_target (no records). create table p… Read more How To Do Incremental Loading In Sql Server

How To Add Sysadmin Login To Sql Server?

I have installed SQL Server 2008 using Windows Authentication in my laptop for my own use. I want t… Read more How To Add Sysadmin Login To Sql Server?

Generic Select Doesn't Work With Bit Type

based on this answer i tryed to create a Select for on of my table ALTER PROCEDURE _Einrichtung_Se… Read more Generic Select Doesn't Work With Bit Type

Combining Two Tables Into One

I need to merge two data schema into one. I have Schema1 and Schema2. I need to join these two into… Read more Combining Two Tables Into One

Import .bak To Mysql (.sql)

I want to import a MS SQL SERVER2008 R2 database backup to MySQL Server. Any help on how I can conv… Read more Import .bak To Mysql (.sql)

Print An Sqlalchemy Row

All I'd like to do is print a single row of an sqlalchemy table row. Say I have: from sqlalchem… Read more Print An Sqlalchemy Row