[how to] Get turno.tipo, maquina.patente and operador.nombre and status, complex query |
- Get turno.tipo, maquina.patente and operador.nombre and status, complex query
- Error Code : 1248 Every derived table must have its own alias in MySQL
- Can't Find CustomerRefListID Field in Table in QuickBooks Enterprise Database
- pg_ctl start gives FATAL: role does not exist
- Home rolled gridview search results shows rows that are supposed to be ignored
- Im trying to start a db app for a project im doing and keep getting stuck at sqlite3.dll
- Auto-increment key and Foreign Key as composite for relational database
- Linked Server to Mirrored Database Fails
- Best practices to encrypt all the data
- how to verify mysql backup file
- 'skip rows' in a flat file source does not work as advertised
- Is it recommended to run a Oracle schema backup when there are active sessions?
- Infinite Loop While Running Query
- Database associative table
- MySQL - What is the diffrence between ClearText authentication and PAM authentication plugins?
- Which is the redundant relationship in this ER Diagram and why?
- Access to tables in SQL Server
- User permissions for Microsoft SQL Server
- Why don't databases create their own indexes automatically?
- Would Mongo's ObjectID work well in InnoDB's clustered index?
- InnoDB Failure of some kind
- Am I overengineering MySQL?
- MySQL is running but not working
- How to check growth of database in mysql?
- Setting NLS params in logon trigger don't work in oracle 11g
- Is it safe to delete dummy tables Oracle 11g XE
- Most idiomatic way to implement UPSERT in Postgresql nowadays
- Oracle 11g see transaction or session start time
- SQL Server Cannot drop database <dbname> because it is currently in use... but no sessions displayed
Get turno.tipo, maquina.patente and operador.nombre and status, complex query Posted: 12 Jun 2013 08:16 PM PDT I've this DB design I'm trying to build a query where I should get Is that right, any advice? |
Error Code : 1248 Every derived table must have its own alias in MySQL Posted: 12 Jun 2013 08:39 PM PDT i have problem here, when im trying to select with query below, i got error message
can somebody help me to find my problem here, i think i've given all tables with his own "name" like TB for CB_BULKS_DATA (example) |
Can't Find CustomerRefListID Field in Table in QuickBooks Enterprise Database Posted: 12 Jun 2013 06:18 PM PDT I am trying to pull data into a powerpivot worksheet in excel and creating relationships. On my reference sheet it is saying that there that the LisdID field on the Customer Table is Related to the CustomerRefListID Field on the SalesOrder Table. But when I look in the SalesOrder Table I find no trace of anything that resembles that? I am no expert in Database or Database modeling but am looking for advice or suggestions that could lead me in the right direction. Below is the Link to the Reference Table that shows the relationships. Thanks for the Help Derek (http://doc.qodbc.com/qodbc/20/tables/table_relations_us4214.html?trelations_id=22&tn_us=TRUE) |
pg_ctl start gives FATAL: role does not exist Posted: 12 Jun 2013 06:18 PM PDT On my system, The server appears to have started up normally. I believe the error occurs because it wants me to run
|
Home rolled gridview search results shows rows that are supposed to be ignored Posted: 12 Jun 2013 06:17 PM PDT Note: I tried posting this on Stack Overflow but didn't get any good bites. I'm still researching this but wanted to see if any db czars can assist here. I'm in the process of trying to troubleshoot some SQL 2012 code in an ASP/C# gridview search that I rolled myself. I have a search box that searches on specific fields but the twist here is that I only want results after a certain row. In this database I have a sequence command that autogenerates a number in a column called 'record_number' for every entry in this table and only want results after record #500. The entries are created manually via a different page. Right now my search code is as follows: I can post my SelectParameters if needed or anything else. The challenge I'm facing is when I run a search for just the letter 'c' leveraging this code, the results that post have a record_number less AND greater than than 500. At this point I'm spinning my wheels as I'm not seeing where the problem lies. If more information is needed by the masses, please let me know. EDIT Forgot this part - I've tried moving around the commands and consolidating the commands but no go. |
Im trying to start a db app for a project im doing and keep getting stuck at sqlite3.dll Posted: 12 Jun 2013 05:43 PM PDT I have searched google and tried various solutions but keep getting the same messagebox no matter what sqlite3.dll i dl. I keep getting 'the procedure entry point sqlite3_backup_finish could be located in the dynamic link library sqlite3.dll' I have tried everything I can think of and would greatly appreciate any help thanks |
Auto-increment key and Foreign Key as composite for relational database Posted: 12 Jun 2013 03:06 PM PDT I do not have any experience in databases other than what I have from just playing with workbench and trying to understand how I need to setup this database for a project. I have been searching the internet and I have become increasingly confused as to how I will do what I want to do. Below is what I am trying to accomplish. I have a need for a MySQL database that will hold patient information. Patient information will be name, id (unique), and so on as well as all of the tests and samples for each test.
So far I understand a relational database is what I need. I also understand that I can use foreign keys to link the patient id's for each table as well as the test id for each table. I have also come to the conclusion that I would like data integrity so that I don't have to manually manage deleting and updating the rows. This would also not allow for orphaned rows. I believe this can be done with a composite key but this is where I start getting confused on how to set it up. I would expect it to work like this (with each line being an insert statement): Patient Table: Tests Table: Sample Table: Can this be done easily? I also know that this can be accomplished with one or two triggers but I understood that to not handle deletions and the like. Is there another way to do this that is easier to implement? Also, data being written and read from this database is handled by my LabVIEW program. |
Linked Server to Mirrored Database Fails Posted: 12 Jun 2013 01:20 PM PDT I've setup up a mirrored database on two servers Server1 and Server 2. On Server3, I'm trying to setup a linked server that will work regardless of which server has the active database. I'm using this to setup the linked server. As long as MyDatabase on Server1 is the principal, the linked server works. When I manually failover to Server2, the linked server fails. The error messages are: The 18456 and 4060 error messages repeat until the query times out after 60 seconds. On Server1, I can see repeated failures trying to login to "MyDatabase". It's failing because Server1 is the mirror. I see no attempts to connect to Server2 which is the principal. If I recreate the linked server with Server2 as the Primary and Server1 as the Mirror, it will work until I fail back to Server1. The mirrored servers are SQL Server 2012 and the box I'm trying to create a linked server on is SQL Server 2005, but I also have the same problem when creating the linked server on a SQL Server 2008 R2 box. I've seen reports that it does work. What am I missing? Thank you! |
Best practices to encrypt all the data Posted: 12 Jun 2013 01:18 PM PDT I'm working in a project, where the client is afraid their own employees (ie.: junior I.T. guys who the client does not trust) querying the database to get sensitive information. The database is a new SQL Server database, so I have some kind of freedom. Googling a bit, I landed here at SQL Server Transparent Data Encryption, and wondered if that what I need, and if it is not... What are the best practices to encrypt all the columns, in all the tables, in a database in order to prevent users for querying the database? |
how to verify mysql backup file Posted: 12 Jun 2013 12:58 PM PDT Is There any tool to verify the backup taken using mysqldump without manual restoration ? I have to take full backup daily so it is difficult for me to verify the backups daily by restoring them. As it will take time and also temporary disk space. Please suggest me how to verify my backup online |
'skip rows' in a flat file source does not work as advertised Posted: 12 Jun 2013 12:46 PM PDT In SSIS(2012 specifically) there is an option in the Flat File Datasource to skip a number of lines at the beginning of a file. The preview appears correctly. However, when trying to execute the data flow, it appears that those rows are still being validated; so that if they contain invalid data(blank rows), the datasource fails. This prevents using a conditional switch to remove rows, since the data flow never starts. Is this accurate description of the normal functioning and is there any way to work around it? Sample data looks like -
|
Is it recommended to run a Oracle schema backup when there are active sessions? Posted: 12 Jun 2013 12:51 PM PDT I need to backup two schemas in a Production database (Oracle11gR2) that are being accessed by an application and some other systems. These schemas are quite small and exp will be used for the export. Are there any best practices or recommendations for backups using exp? I cannot afford to have the users face any interruption during these backups. For example, has anyone experienced the backup utility hang? |
Infinite Loop While Running Query Posted: 12 Jun 2013 05:28 PM PDT When I run this query from the command line, it continuously loops. I'm not sure why this is occurring. Could anyone explain this to me, and please offer a fix. I will be using a query similar to this in a Python script and need to ensure I get the expected data. I'm using MySQL, version 5.1.69 Table structure for leads: leads_cstm is as follows: |
Posted: 12 Jun 2013 01:17 PM PDT I have a coworker who's insisting on using associative tables to create nullable associations. For example, we have this table : and he's arguing that creating rows like is perfectly fine. I disagree. The purpose of this "design" is to allow a temporary (or future) "relationship" to be created, and be updated later on. It doesn't have to be this way and this is my coworker's decision and not a requirement. I believe that this is not good practice at all, and simply adds more complexity and undefined behaviours than necessary. I know this question may raise an animated discussion and I'm not looking for an opinion, but facts. By using references, can an expert help break this tie? Thanks. ** NOTE ** Just found this paragraph here :
** EDIT ** What I would suggest is something like this : So we could identify (instead of null values) what kind of relationship the two table rows have, thus giving more verbosity in the business logic, etc. |
MySQL - What is the diffrence between ClearText authentication and PAM authentication plugins? Posted: 12 Jun 2013 04:42 PM PDT PAM Authentication: PAM enables a system to use a standard interface to access various kinds of authentication methods, such as Unix passwords or an LDAP directory. Cleartext Client-Side Authentication Plugin client-side plugin can be used to send the password to the server in clear text. There is no corresponding server-side plugin. I have read documentation but could not get enough help, PAM authentication is supported only in MySQL Enterprise edition but cleartext authentication is applicable to all MySQL servers as it's a client who invokes this kind of authentication mechanism. Questions: Has anybody practically tried using PAM authentication or Cleartext authentication plugin? If so please explain how to configure and setup with an example? |
Which is the redundant relationship in this ER Diagram and why? Posted: 12 Jun 2013 12:49 PM PDT Which is the redundant relationship in this ER Diagram and why? A few of my friends and I have been trying to figure it out but keep going in circles. where the attributes of each entity are as follows: |
Access to tables in SQL Server Posted: 12 Jun 2013 04:35 PM PDT I would like to know if there is a table where accesses to tables are saved, per user or per system. I'm using both SQL Server 2005 and 2008. |
User permissions for Microsoft SQL Server Posted: 12 Jun 2013 03:28 PM PDT Please advice to give permission for a SQL server user. Conditions are, this user must be able to |
Why don't databases create their own indexes automatically? Posted: 12 Jun 2013 12:43 PM PDT I would have thought that databases would know enough about what they encounter often and be able to respond to the demands they're placed under that they could decide to add indexes to highly requested data. |
Would Mongo's ObjectID work well in InnoDB's clustered index? Posted: 12 Jun 2013 01:21 PM PDT Mongo's ObjectID is defined like this:
Assuming the PRIMARY key was BINARY(12), will this work as well as an auto incremented INT? Does it count as sequential for InnoDB's clustered index? Would gaps in the timestamp be a problem? |
Posted: 12 Jun 2013 01:26 PM PDT I have MySQL 5.5 installed. I tried to install Joolma but it failed. I went into their sql and replace EGNINE=InnoDB with MyISAM and the install worked. InnoDB is listed under SHOW ENGINES; Any idea what the cause is or how to fix this so other InnoDB sites can be used? I had these errors: |
Posted: 12 Jun 2013 08:26 PM PDT On my project, I have to make difference between registered users, and simple visitors. Both of them can set their own properites, specified in I identify them by cookie, if there is no cookie, a user can log in, and create a session (and a "remember me" cookie if she wishes) and the simple one time visitor also creates a cookie and a session. I split the current session to either I insert the visited Am I overengineering? Here is the diagram: |
MySQL is running but not working Posted: 12 Jun 2013 02:26 PM PDT In an attempt to tune MySQL to make it work with a recent installation of Drupal I had to modify the MySQL settings on my server. After modifying the configuration file for MySQL (/etc/my.cnf) MySQL stopped working. After some attempts I make it start again but now all my php/MySQL webistes are not being able to connect to their DBs. Here is why is so confusing:
My websites using MySQL almost all say: Another say: This is my current my.cnf: I commented most of it to return it to its simplest version... How can I make the web side to connect to mysql? |
How to check growth of database in mysql? Posted: 12 Jun 2013 04:26 PM PDT I want to know is there any method to check the growth of database on file EXAMPLES
|
Setting NLS params in logon trigger don't work in oracle 11g Posted: 12 Jun 2013 02:35 PM PDT We have a trigger setup so that when a specific user logs in, their NLS session parameters are modified. This used to work on Oracle 10g. We've just migrated to Oracle 11g RAC, and the session parameters are no longer persisting. To explain, I've pasted a session that shows the NLS_DATE_FORMAT not being used properly. This is the trigger we're using: The formats above are not default, so they appear to change on login. Please help. I've been tearing my hair out for 13 hours, 7 minutes and 4 seconds. Any ideas? Thank you. |
Is it safe to delete dummy tables Oracle 11g XE Posted: 12 Jun 2013 12:59 PM PDT i created a database schema in 11g express edition, however there are some APEX tables and some dummy data... Is it safe to delete them? also i would like to know what does apex means and why they have a dollar sign, thanks... I used SYS to create a new user, the new user was created along with a workspace and a database schema, please see the images above. |
Most idiomatic way to implement UPSERT in Postgresql nowadays Posted: 12 Jun 2013 04:41 PM PDT I've read about different And I'm just not a psql expert at all to find out immediately, whether these solutions are old because they are well recommended or they are (well, almost all of them are) just toy examples not appropriate to production use. So my question is following. Regarding to the fact that it is year 2012, what is the most common, most thread-safe way to implement UPSERT in PostgreSQL? |
Oracle 11g see transaction or session start time Posted: 12 Jun 2013 01:05 PM PDT I want to know when a session or transaction started. The deadlock file doesn't give me this information. Is there some logfile that keeps these records? I've got a transaction id "TX-1234-abcd", a session number and some "DID 000-000ABCD" number. |
SQL Server Cannot drop database <dbname> because it is currently in use... but no sessions displayed Posted: 12 Jun 2013 01:25 PM PDT When I try to drop a database I get the error "Cannot drop database "dbname" because it is currently in use". However, when I run Why is this happening? |
You are subscribed to email updates from Recent Questions - Database Administrators Stack Exchange To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
No comments:
Post a Comment