&
Best unofficial Apache Server developers community
Username
Remember me?
Password
Forgot password?
Create an account
List archives
Videos
Answers
Questions
Unanswered
Tags
Ask Question
database database-queries
0
votes
2
answers
49
views
Confused on a somewhat complex LEFT/RIGHT JOIN query
thanks for taking the time to read this. Essentially I have 3 tables. Posts, Follows, Artists. What I am trying to do is pull all the 'Posts' from…
mysql
sql
database
query
database-queries
asked
June 23, 2011 7:16 pm CDT
Jonathan Coe
0
votes
1
answer
43
views
Help with SELECT DISTINCT
I have a plans table: tariff | monthly_cost -------------------------- Lion , 15.00 Lion , 20.00 Cat , 15.00 Cat , 20.00 Cat Extra , 20.00 Cat Extra…
mysql
sql
database
database-queries
asked
June 20, 2011 7:04 am CDT
user791022
0
votes
3
answers
27
views
PHP: Prepared statements (newbie) getting this error
I am a newbie to prepared statements and trying to get something simple to work. This is my DB table: `unblocker_users` ( `uno` bigint(20) NOT NULL…
php
mysql
database
database-queries
prepared-statements
asked
June 16, 2011 9:14 am CDT
Ryan
0
votes
2
answers
31
views
Union on two selects with a different number of columns
I am trying to add one more column of output to my result set in MySQL. I can easily get these results by doing two separate queries, but I would…
mysql
sql
database
database-queries
asked
June 10, 2011 2:03 pm CDT
Hunter
2
votes
3
answers
34
views
Is it more efficient to construct a massive insert statement or many insert statements?
I'm importing a csv file to a mysql db. Haven't looked into bulk insert yet, but was wondering is it more efficient to construct a massive INSERT…
php
mysql
database
insert
database-queries
asked
June 10, 2011 7:33 am CDT
samxli
0
votes
0
answers
42
views
Scope of a MySQL VIEW with Subtype_Supertype
Given the db design below, if I need to populate BusinessId & UserId when a new Party is created and assigned a PartyType of either B (Business)…
mysql
database
view
database-queries
asked
June 8, 2011 2:22 am CDT
enfield
1
vote
2
answers
33
views
Duplicate column names in SQL query
How do I avoid a dup column name error in MySQL when creating a VIEW on two tables that both have the same column name as shown here CREATE VIEW…
mysql
database
stored-procedures
view
database-queries
asked
June 8, 2011 1:00 am CDT
enfield
0
votes
0
answers
36
views
INSERT on MySQL db utilizing Subtype/Supertype
Is it possible and if so how would I accomplish an INSERT in a MySQL db utilizing Subtype/Supertype? I asked about the approach here and Catcall…
mysql
database
stored-procedures
view
database-queries
asked
June 6, 2011 3:33 pm CDT
enfield
1
vote
3
answers
32
views
Getting total value from each field?
How do I get the Total value of Yes, No, Other fields of each username? I like to add Total field. SELECT Username, SUM(CASE WHEN type = 'Yes' THEN…
mysql
sql
database
database-queries
asked
May 31, 2011 7:43 am CDT
user622378
0
votes
0
answers
33
views
MongoDB's count() incorrectly returns 0 if a query is given
Hi, Our database is currently running and everything seems to fine. I wanted to do some statistics so I did some standard calls. Basically I wanted…
database
mongodb
database-queries
asked
May 17, 2011 11:55 am CDT
freeall
1
vote
5
answers
42
views
MySQL Query with multiple WHEREs, some may be empty
I am trying to create a query where a user can enter: first name, last name, nick name, grade, and gender. However, some of these fields may be…
php
mysql
sql
database
database-queries
asked
May 11, 2011 4:32 pm CDT
JT White
0
votes
3
answers
28
views
Problem minus in mysql in subtratcting group data
i have three table member ( memberid ,m_name,statusid,address,DOB,phone) booking ( bookingid , memberid ,sessionid, cost) session( sessionid ,…
mysql
database
database-queries
asked
April 29, 2011 2:26 pm CDT
user634619
0
votes
2
answers
54
views
Multiples queries into one (Report)?
How do I comebine multiple queries into one? For example: //Successful Sales: SELECT username, count(*) as TotalSales, sum(point) as Points FROM…
mysql
sql
database
database-queries
asked
April 28, 2011 9:45 am CDT
user622378
0
votes
3
answers
40
views
If not exist insert into table mysql problem
Hi. I am trying to insert into my table, but only if the information doesn't exist already. This works: $sql = //"if not exists ( select `id` from…
mysql
sql
database
query
database-queries
asked
April 25, 2011 12:16 pm CDT
ganjan
0
votes
2
answers
33
views
Problem with select statement mysql
Hi. This has annoyed me for a while now. I am trying this query in phpmyadmin. select `id` from `users` where `fb_id` = 507292797 limit 1 This…
php
mysql
database
query
database-queries
asked
April 24, 2011 3:09 pm CDT
ganjan
0
votes
0
answers
31
views
Trying to load and then Query and SQLite Database in my Android Application - Severely Stumped.
Basically what I am trying to do is load my database (romskillDB.db) from my assets folder and then query for the information I want. I have tried…
android
database
query
sqlite
database-queries
asked
April 20, 2011 3:16 pm CDT
AndroidNewb17453
3
votes
1
answers
31
views
Strange behaviour from MYSQL 5 (Database Isolation)
I opened two command windows to work with my Database (MySQL5). Below is table structure I'm working with (It should be noted that I've turned off…
mysql
database
database-queries
transaction-isolation
asked
April 20, 2011 3:25 am CDT
Vicky
1
vote
3
answers
33
views
SQL: how to get last items?
I have a log for documents that go through my application. The log looks like this: TABLE: log ================================================== |…
mysql
sql
database
database-queries
asked
April 17, 2011 4:33 pm CDT
StackOverflowNewbie
0
votes
6
answers
43
views
MySQL query, MAX() + GROUP BY
Hi folks, Daft SQL question. I have a table like so ('pid' is auto-increment primary col) pid | cost | timestamp | rid…
mysql
sql
database
database-queries
relational-database
asked
April 13, 2011 8:02 pm CDT
codinghands
0
votes
2
answers
32
views
Efficiency of subqueries vs running functions several times?
I have the following two queries and I wonder what's more efficient to do: a) to use a subquery and an inner join or b) to call CONVERT_TZ() several…
mysql
sql
database
database-queries
asked
April 7, 2011 5:08 pm CDT
Eric
Pages
:
1
|
2
>
35
database database-queries
Tagged:
database + database-queries
Related Tags
mysql
× 87
sql
× 42
database
× 35
php
× 22
sqlite
× 16
query
× 12
database-design
× 11
queries
× 8
mongodb
× 6
android
× 5
postgresql
× 5
winforms
× 4
c#
× 4
view
× 3
stored-procedures
× 3
actionscript
× 2
indexing
× 2
objective-c
× 2
flex
× 2
cursor
× 2
join
× 2
hierarchical-data
× 2
select
× 2
python
× 2
datetime
× 2
database-schema
× 2
relational-database
× 2
indexes
× 2
auto-increment
× 1
English
Russian
Copyright 2007 - 2012
Best unofficial Apache Server developers community
Privacy policy