22 questions
0
votes
1
answer
82
views
Postgresql conditionally include distinct in query
Postgresql conditionally include distinct in query
Is there way to modify a query such as:
select distinct col1, col2
from our_schema.our_table
where (id = '1001')
The goal ...
2
votes
1
answer
210
views
Insert a single line of data into multiple rows of table
Synopsis: How to write the SQL code to insert one record from a flat-file into separate records to be inserted into a SQL Server table.
Specifics: I have a table to record lease payments. For each ...
-4
votes
2
answers
484
views
Dynamic Statement to Get Top "n" for Each Individual Column from Ms SQL Table
Help me with this Dynamic statement perform faster, the statement will fetch top n values for each column from a table.
The table will have an "n" number of columns but will have a primary key. NULLs ...
0
votes
1
answer
1k
views
PostgreSQL trigger on insert external script with arguments
I have created function calling external script with arguments:
CREATE OR REPLACE FUNCTION foo3(text, text) RETURNS TEXT AS $$
$ip = shift;
$username = shift;
$cmd="/bin/echo -n $ip $username > /...
2
votes
1
answer
471
views
Why is programming interface to database called driver?
When writing an application which updates or queries a database, we use something called a database driver (e.g. a JDBC driver). I wonder why it is called a driver instead of a library?
Is libpq a ...
2
votes
1
answer
786
views
Is Schemaspy secure for using with sensitive data?
I'm currently looking at metadata solutions for Microsoft SQL Server 2016. I'm interested in using Schemaspy. I think it looks like a great free way to document metadata, but I'm worried that it may ...
0
votes
0
answers
299
views
Using EF only for Insert/Update/Delete and SQL for Querying
Anyone has experience of using/developing a Data Access model which uses Entity Framework only for Insert/Update/Delete and raw SQL for Reading/Querying purposes. If any, how was your experience, what ...
0
votes
1
answer
616
views
PostgreSQL internals- using GUC in an Operator?
I am creating my own index method in PostgreSQL based on GiST as extension. I want one of my functions (check out Examples section) in my operator to behave differently based on a value defined by the ...
1
vote
1
answer
95
views
Trying to connect to a Access database table in order to retrieve data, but encounter difficulties
First time doing database programming, so I just made a database in Access to try to do something with it. The database I created called "TestDatabase" on my desktop, and the table I created inside ...
0
votes
1
answer
681
views
How to Quote Square Brackets in a Field Name for ADO Recordset's Filter Property
I am attempting to specify a filter condition on an ADO Recordset where one of the field names contains both left and right square brackets as part of the name. The resulting condition string is being ...
1
vote
2
answers
182
views
Code Reuse Verses Database Access Duration
The Problem
I have some code which I've coded in such a way to enable high maintainability and code re-usability. I am concerned about a particular piece of code and I would like a professional ...
-1
votes
3
answers
75
views
How to associate a customized number with exception
I have some code where I want to throw two exceptions; however, the exception are basically the same but with different values. I would like to know an elegant generic way to determine which of these ...
0
votes
2
answers
1k
views
How do you search or sort in SQLite Database?
I have an application that stores information in a database based on the information from 5 text fields. I'm having trouble being able to sort through fields or just even sorting from one field. Also, ...
2
votes
3
answers
159
views
getting data from memory instead of table
I have a parameter table with 10 rows. Called parameter_table.
In my PL/SQL procedure, I do loop in 2 million records. And each time querying this parameter table too.
I want to load this parameter ...
1
vote
3
answers
1k
views
visual basic 6 access 2007 database programming cascading combo boxes
I have a table named: schoolInfo in access 2007 and it has two fields (schName and mjrName).
Now I'm trying to design a combo in Visual Basic 6 (cboMajors) which is related to the other combo (...
3
votes
3
answers
596
views
Is it possible to Update an SQL Server Database and an Informix Database at the same time?
I was wondering if it is possible to add/update/delete an SQL Server database table, as well as an Informix database table at the same time.
Both databases will have the same table (data and all), so ...
1
vote
2
answers
1k
views
SQLite and Cloud applications
i was wondering if there is a way to enable cloud features for a SQLite database application.
Should i save the whole database to the cloud each time ? For example when i quit the application is it ...
0
votes
4
answers
317
views
Programming a scalable database [closed]
I want to ask you what programming language I should use to develop a horizontally scalable database. I don't care too much about performance.
Currently, I only know PHP and Python, but I wonder if ...
3
votes
1
answer
1k
views
Getting right row while using inheritance of tables in PostgreSQL
I'm recently trying to drop Doctrine due to performance and problems with abstraction and move to database driven logic. I'm using mostly PostgreSQL.
Doctrine
One thing that I liked about ...
6
votes
3
answers
7k
views
What is the difference between a DataSet and a DataTable in .NET?
What is the difference between a DataSet and a DataTable in .NET?
1
vote
3
answers
231
views
SQL - Most performant manner to conditionally exlude a join? (if it's even possible)
If I have the following table structure...
Table 1: BlogPost
PostId | Name | Text
Table 2: Tags
TagId | Tag
Table 3: BlogPostTag
PostId | TagId
And the following stored procedure...
...
1
vote
1
answer
144
views
Have mysql re-allocate ids in a continuous range
I have an existing database in mysql. One of my tables has discontinuous ids. I would like to modify the ids of the table so that they go from 1 to num-of-rows.
This particular tables does not happen ...