sql Questions
7
Solved
Input:
The customer claims that the application (.NET) when querying for some data returns data different from when the customer looks into the data table directly.
I understand there could be va...
Ison asked 18/6, 2009 at 16:26
4
I need to build a kibana like dashboard over a sql database. Is this possible? or is there an alternative as easy as kibana (in term of integration) for sql?
Metathesize asked 19/11, 2014 at 17:31
6
sql = """
INSERT INTO [SCHOOLINFO]
VALUES(
'""" + self.accountNo + """',
'""" + self.altName + """',
'""&...
5
Solved
I am doing some performance testing on a SQL sproc and just want to bang out a quick data generator for testing.
I am after a simple way to generate a pseudo random (true random not needed in this...
3
Solved
I'm trying to remove parenthesis and text within it.
Eg: Column1 has data and cleaned data should look like column2
Column1 Column2
HF(abcd) HF
BP(234) BP
ATRS (2354) ATRS
AB(PS) SD(12) AB SD
I...
Farmland asked 2/10, 2017 at 18:44
5
Solved
I have a table (Table1) which has a composite primary key(Column1 + Column2). I am using it as a foreign key in another table (Table2).
Now I want to a SELECT statement to select all records from ...
Lotuseater asked 21/3, 2011 at 16:55
1
Is it possible to create a partial foreign key (similar to partial indexes) in general sql / postgresql? I have not found a way to force referential integrity in the following case:
Table A is soft...
Helsell asked 28/11, 2017 at 13:1
1
I've got this query in a @SQLInsert annotation in Spring against an Oracle 11g database and, although it's inserting properly it is not updating the values but raising no error.
Any ideas? If not,...
Tichonn asked 29/1, 2019 at 10:37
6
Solved
I have the following example data structure of customer that can be part of multiple groups using a junction table and data:
CREATE TABLE customer(id) AS VALUES (0),(1),(2),(3);
CREATE TABLE groups...
Dorree asked 7/8, 2024 at 9:39
5
Solved
How can I query all tables' all table columns in a database?
Method I've tried:
get all table names using select tablename from pg_tables where schemaname = 'public'
Process cmd string using UNI...
Fresher asked 21/8, 2018 at 3:25
3
I have a table which contains a primary key column which is auto incremented from application. How can I modify the column to be an identity column in Oracle 12c?
A sample case is provided below-
...
7
Solved
Consider the following simple DAG:
1->2->3->4
And a table, #bar, describing this (I'm using SQL Server 2005):
parent_id child_id
1 2
2 3
3 4
//... other edges, not connected to the su...
Scour asked 6/5, 2009 at 13:20
5
Just installed the iPython-SQL extenson, but when I run
%load_ext sql
I get an error "The sql module is not an IPython extension."
I installed it via pip by
pip install ipython-sql
and when ...
5
Solved
I'm having a hard time working out how I should be installing the JDBC driver for PostgreSQL on my debian 6.0 server. I have moved the driver .jar into the following directory:
/usr/local/pgsql/sh...
Stripteaser asked 13/12, 2012 at 12:36
3
Solved
I'm trying to add a column to a table in my Postgres 9.3 database with this seemingly simple SQL:
ALTER TABLE quizzes ADD COLUMN deleted BOOLEAN NOT NULL DEFAULT false;
However, I'm getting the ...
Killdeer asked 26/7, 2017 at 0:28
5
Solved
I have SQL Server Reporting Services 2008 and when I open the following URL:
"http://localhost/Reports/Pages/Report.aspx?someReport"
I'm getting report screen in which I fill my parameters and...
Fears asked 7/8, 2012 at 12:30
6
Refer this!
I was creating a database and got this error i tried to uninstall and then reinstall postgresql-16 and pgadmin4 but it didn't work for me! It creates a database but gives this error i a...
Bedding asked 11/2, 2024 at 5:17
10
I was working on an Access database which loved auto-numbered identifiers. Every table used them except one, which used a key made up of the first name, last name and birthdate of a person. Anyways...
Jubal asked 18/8, 2010 at 13:59
8
Here I have a table with a time column (datatype is integer), now I need to convert the integer value to time format HH:MM:SS:00 in SQL Server 2008.
Also need clarification in the above time forma...
Seattle asked 24/9, 2012 at 15:43
8
I'm trying to query a like statement across multiple columns. I have the following search terms:
'dog'
'cat'
'rabbit'
'gerbil'
'guinea pig'
'hamster'
and I need search for these terms or terms LIK...
8
I use DBeaver for my main IDE to query multiple databases. When I query a table, it automatically generates a long select statement with all columns in one line.
When I am making more complex que...
Pied asked 26/9, 2017 at 14:29
11
Solved
Can/Should I use a LIKE criteria as part of an INNER JOIN when building a stored procedure/query? I'm not sure I'm asking the right thing, so let me explain.
I'm creating a procedure that is going...
Inefficient asked 21/8, 2008 at 16:45
5
Solved
I'm trying to convert my Date which is (eg. 2012-04-20 05:54:59) format in into mm-yyyy. I came across some solutions that says you would need to convert into varchar . Is there any way using the C...
Immaterialism asked 3/3, 2015 at 22:6
10
I don't want to create a custom function for that if such function already exists in SQL Server.
Input string: This is my string to convert
Expected output: This Is My String To Convert
Hemimorphite asked 2/3, 2011 at 6:34
2
I have a database of several tables in which the first field is defined as:
'ID' INTEGER NOT NULL UNIQUE ... PRIMARY_KEY('ID')
I do not use the AUTOINCREMENT keyword for any of these tables yet my...
Candicecandid asked 6/8, 2019 at 11:38
© 2022 - 2025 — McMap. All rights reserved.