Skip to content

Tag: sql

Time zone conversion in SQL query

I am using a query to get some application Received Date from Oracle DB which is stored as GMT. Now I have to convert this to Eastern standard/daylight savings time while retrieving. I am using the below query for this: It works fine for Standard time. But for daylight savings time we need to convert it to &#…

Execute a Stored Procedure Inside a View?

I started working for a company a few weeks ago, and have inherited a crazy mess of databases. I’m currently working on designing the new systems to replace their older ones. The previous developer created a ton of views that are entirely identical, with the only differences being the conditions within …

Data type mismatch on SQL Query in VBA

I am trying to do an SQL query in VBA to retun a specific case number. Whenever I execute the query, it returns an error of “Data Type Mismatch in Criteria Expression”. I am passing the query an integer to use to query an autonumber primary key. Of course the debug hilights the execute command. An…

Magento joining 2 tables

I want to join admin table and another profile table in magento how should I do this? I want to join $userModel = Mage::getModel(‘admin/user’); table and Answer Riaz.try the below code — Here suppose vendorprofile.vendor_id = main_table.entity_id is the relation between two tables. if you wa…