Click here to Skip to main content
15,887,267 members
Home / Discussions / Database
   

Database

 
AnswerRe: peak hours query Pin
Bernhard Hiller3-Mar-13 20:39
Bernhard Hiller3-Mar-13 20:39 
AnswerRe: peak hours query Pin
S Douglas4-Mar-13 9:49
professionalS Douglas4-Mar-13 9:49 
QuestionProblem closing patient file! Pin
Jassim Rahma2-Mar-13 21:34
Jassim Rahma2-Mar-13 21:34 
AnswerRe: Problem closing patient file! Pin
Joezer BH2-Mar-13 21:50
professionalJoezer BH2-Mar-13 21:50 
GeneralRe: Problem closing patient file! Pin
Jassim Rahma2-Mar-13 22:24
Jassim Rahma2-Mar-13 22:24 
GeneralRe: Problem closing patient file! Pin
Joezer BH2-Mar-13 22:29
professionalJoezer BH2-Mar-13 22:29 
AnswerRe: Problem closing patient file! Pin
Sandeep Mewara2-Mar-13 21:59
mveSandeep Mewara2-Mar-13 21:59 
GeneralRe: Problem closing patient file! Pin
Jassim Rahma2-Mar-13 22:26
Jassim Rahma2-Mar-13 22:26 
H Snadeep,

closed_date is Blank... here is the table structure:

SQL
CREATE TABLE `visits` (
  `visit_id` int(11) NOT NULL AUTO_INCREMENT,
  `file_no` int(11) DEFAULT NULL,
  `visit_is_open` bit(1) DEFAULT b'1',
  `clinic_id` int(11) DEFAULT NULL,
  `doctor_id` int(11) DEFAULT NULL,
  `account_category` int(11) DEFAULT NULL,
  `account_number` bigint(11) DEFAULT NULL,
  `price_list_id` int(11) DEFAULT NULL,
  `vital_signs_taken` bit(1) DEFAULT b'0',
  `total_amount` double(11,3) DEFAULT '0.000',
  `balance_amount` double(11,3) DEFAULT '0.000',
  `created_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_user` int(11) DEFAULT NULL,
  `closed_date` datetime DEFAULT NULL,
  `closed_user` int(11) DEFAULT NULL,
  PRIMARY KEY (`visit_id`),
  KEY `idx_visits_visit_id` (`visit_id`),
  KEY `idx_visits_file_no` (`file_no`),
  KEY `idx_visits_visit_is_open` (`visit_is_open`),
  KEY `idx_visits_clinic_id` (`clinic_id`),
  KEY `idx_visits_doctor_id` (`doctor_id`),
  KEY `idx_visits_account_category` (`account_category`),
  KEY `idx_visits_account_number` (`account_number`),
  KEY `idx_visits_price_list_id` (`price_list_id`),
  KEY `idx_visits_vital_signs_taken` (`vital_signs_taken`),
  KEY `idx_visits_total_amount` (`total_amount`),
  KEY `idx_visits_balance_amount` (`balance_amount`),
  KEY `idx_visits_created_date` (`created_date`),
  KEY `idx_visits_created_user` (`created_user`),
  KEY `idx_visits_closed_date` (`closed_date`),
  KEY `idx_visits_closed_user` (`closed_user`)
) ENGINE=MyISAM AUTO_INCREMENT=631 DEFAULT CHARSET=utf8;



Technology News @ www.JassimRahma.com

GeneralRe: Problem closing patient file! Pin
Sandeep Mewara2-Mar-13 22:44
mveSandeep Mewara2-Mar-13 22:44 
AnswerRe: Problem closing patient file! Pin
gvprabu3-Mar-13 22:18
gvprabu3-Mar-13 22:18 
QuestionSQLExpress scripted install Pin
loctrice2-Mar-13 0:26
professionalloctrice2-Mar-13 0:26 
AnswerRe: SQLExpress scripted install Pin
loctrice2-Mar-13 2:35
professionalloctrice2-Mar-13 2:35 
Generaldatabase Pin
Kapilkp1-Mar-13 0:16
Kapilkp1-Mar-13 0:16 
GeneralRe: database Pin
Richard MacCutchan1-Mar-13 0:58
mveRichard MacCutchan1-Mar-13 0:58 
GeneralHomework Pin
David Mujica1-Mar-13 3:31
David Mujica1-Mar-13 3:31 
GeneralRe: Homework Pin
Richard MacCutchan1-Mar-13 3:33
mveRichard MacCutchan1-Mar-13 3:33 
GeneralRe: database Pin
Mycroft Holmes1-Mar-13 11:57
professionalMycroft Holmes1-Mar-13 11:57 
QuestionRestrict user to delete database object in SQL SERVER 2005 Pin
LTMKH28-Feb-13 19:49
LTMKH28-Feb-13 19:49 
AnswerRe: Restrict user to delete database object in SQL SERVER 2005 Pin
Eddy Vluggen1-Mar-13 5:01
professionalEddy Vluggen1-Mar-13 5:01 
AnswerRe: Restrict user to delete database object in SQL SERVER 2005 Pin
gvprabu2-Mar-13 1:56
gvprabu2-Mar-13 1:56 
GeneralRe: Restrict user to delete database object in SQL SERVER 2005 Pin
LTMKH28-Mar-13 5:20
LTMKH28-Mar-13 5:20 
QuestionHelp for RSA ...plzzz Pin
shahbaz_llm28-Feb-13 7:19
shahbaz_llm28-Feb-13 7:19 
Questionsql server table records to sqlite Pin
jojoba201127-Feb-13 18:23
jojoba201127-Feb-13 18:23 
AnswerRe: sql server table records to sqlite Pin
_Damian S_27-Feb-13 18:35
professional_Damian S_27-Feb-13 18:35 
QuestionRe: sql server table records to sqlite Pin
jojoba201127-Feb-13 18:40
jojoba201127-Feb-13 18:40 

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.