Click here to Skip to main content
15,886,806 members
Home / Discussions / Database
   

Database

 
AnswerRe: Downgrade Sql server database Pin
Andrius Leonavicius4-Apr-14 14:27
professionalAndrius Leonavicius4-Apr-14 14:27 
QuestionSearch in textbox Pin
Member 107240203-Apr-14 23:09
Member 107240203-Apr-14 23:09 
AnswerRe: Search in textbox Pin
Richard Deeming4-Apr-14 0:59
mveRichard Deeming4-Apr-14 0:59 
QuestionHow to write stored procedure in mysql workbench. SELECT, INSERT, UPDATE,DELETE Pin
Ravi900kumar3-Apr-14 10:28
Ravi900kumar3-Apr-14 10:28 
GeneralRe: How to write stored procedure in mysql workbench. SELECT, INSERT, UPDATE,DELETE Pin
PIEBALDconsult3-Apr-14 10:41
mvePIEBALDconsult3-Apr-14 10:41 
QuestionDB Mango Pin
Member 99929933-Apr-14 9:43
Member 99929933-Apr-14 9:43 
AnswerRe: DB Mango Pin
Mycroft Holmes3-Apr-14 12:59
professionalMycroft Holmes3-Apr-14 12:59 
Questionselecting data from two tables Pin
Member 102635192-Apr-14 3:05
Member 102635192-Apr-14 3:05 
hi,

I need to select data from two tables am using the following query:

SQL
select c.customer_id ,c.father_name ,c.address,c.phone_number ,c.mobile_number ,c.id_proof ,c.area ,c.ip_address as 'IP Address',c.mac_address as 'MAC Address',c.package_type as 'Package Type',c.name as Name,c.activation_date as 'Activation Date',c.status as 'Status',c.installation_cost as 'Installation Cost',c.totalamount_paid as 'Total Amount Paid',c.monthly_amount as 'Monthly Amount',c.lastpaid_date as 'Last Paid Date',c.lastpaid_amount as 'Last Paid Amount',c.nextpay_date as 'Next Pay Date',c.totaldue_amount as 'Total Due Amount',t.agent_id as 'Agent ID',t.token_number as 'Token Number',t.machine_id as 'Machine ID' from customer c,transaction t where c.customer_id=t.customer_id and DATE(t.paid_date)BETWEEN '2014-02-02'AND '2014-04-02' ;



It's giving correct information but each record is displayed twice , i want a record only once.
AnswerRe: selecting data from two tables Pin
Richard Deeming2-Apr-14 3:24
mveRichard Deeming2-Apr-14 3:24 
GeneralRe: selecting data from two tables Pin
Member 102635192-Apr-14 19:28
Member 102635192-Apr-14 19:28 
GeneralRe: selecting data from two tables Pin
Richard Deeming3-Apr-14 1:03
mveRichard Deeming3-Apr-14 1:03 
AnswerRe: selecting data from two tables Pin
Jörgen Andersson2-Apr-14 3:25
professionalJörgen Andersson2-Apr-14 3:25 
AnswerRe: selecting data from two tables Pin
Bernhard Hiller2-Apr-14 21:48
Bernhard Hiller2-Apr-14 21:48 
GeneralRe: selecting data from two tables Pin
Member 102635192-Apr-14 22:41
Member 102635192-Apr-14 22:41 
GeneralRe: selecting data from two tables Pin
Bernhard Hiller3-Apr-14 20:44
Bernhard Hiller3-Apr-14 20:44 
AnswerRe: selecting data from two tables Pin
BobWayne078-Apr-14 9:08
BobWayne078-Apr-14 9:08 
QuestionOracle Database Pin
Zeyad Jalil1-Apr-14 0:19
professionalZeyad Jalil1-Apr-14 0:19 
AnswerRe: Oracle Database Pin
thatraja3-Apr-14 1:02
professionalthatraja3-Apr-14 1:02 
QuestionSQL - Write Query with field names and table name stored in a table? Pin
Megan Jean27-Mar-14 11:11
Megan Jean27-Mar-14 11:11 
GeneralRe: SQL - Write Query with field names and table name stored in a table? Pin
PIEBALDconsult27-Mar-14 11:52
mvePIEBALDconsult27-Mar-14 11:52 
GeneralRe: SQL - Write Query with field names and table name stored in a table? Pin
Megan Jean28-Mar-14 4:51
Megan Jean28-Mar-14 4:51 
GeneralRe: SQL - Write Query with field names and table name stored in a table? Pin
PIEBALDconsult28-Mar-14 6:50
mvePIEBALDconsult28-Mar-14 6:50 
GeneralRe: SQL - Write Query with field names and table name stored in a table? Pin
Megan Jean28-Mar-14 12:17
Megan Jean28-Mar-14 12:17 
GeneralRe: SQL - Write Query with field names and table name stored in a table? Pin
PIEBALDconsult28-Mar-14 13:07
mvePIEBALDconsult28-Mar-14 13:07 
GeneralRe: SQL - Write Query with field names and table name stored in a table? Pin
Member 1071490931-Mar-14 22:45
Member 1071490931-Mar-14 22:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.