similar to: How do I access a child table/model from the parent in sql s

Displaying 20 results from an estimated 10000 matches similar to: "How do I access a child table/model from the parent in sql s"

2010 Sep 08
2
Rails 2 to Rails 3 - How to convert this sql query ?
Hello all, Can someone help me with this query ? Here is the query used in rails 2. The idea here is to obtain the top 10 widgets. Widget.find(:all, :select => ''widget_type_id, COUNT(widget_type_id) AS widgettypeid'', :group => ''widget_type_id'', :order => ''widgettypeid DESC'', :limit => 10) This is deprecated and i want to port it
2006 Mar 13
2
newbie: parent-child view
I have a simple database: a list of manufacturers (parent) and the parts (child) for the manufacturer. >From scaffold, I have a ?show? view listing manufacturers. I modified this view to list the parts for the manufacturer. I also have a link to create a new part. This causes the controller to display a new view to create a new part for the manufacturer. So creating the part is AOK,
2006 Aug 17
1
How to sort child table on fields in the associated parent
For an Xray file system patients have folders and folders have studies. That is: patients folders studies id id id name patient_id folder_id ... label type ... ... The list of studies with their associated folder and patient might look like this: name folder_label study_type
2012 Jun 30
4
find_by_sql and join
hi I amd tanizawa. I had problem. I can not get main.name value from below sql. "find_by_sql ''select main.id,main.name,sub.name from main left join sub on sub.id = main.id''" Please teach me how to get borth name value. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the
2006 Jul 13
5
how to get to the parent of a child object.
Hi, i have a problem with the following: I have an application with patients <-->>consults models are ok in the view list_consults i do this: for consult in @consults%> <tr> <td><%= consult.patient.name %></td> <td><%= consult.reason %></td> <td><%= consult.date %></td> <td><%= link_to
2018 Jun 03
3
chrony configuration for secondary samba DC
The output is: alexei at ubuntu-dc:~$ sudo samba -b | grep 'SIGND' NTP_SIGND_SOCKET_DIR: /var/lib/samba/ntp_signd On Sun, Jun 3, 2018 at 5:32 PM Rowland Penny via samba <samba at lists.samba.org> wrote: > > On Sun, 3 Jun 2018 17:11:47 +0300 > Alexei Rozenvaser <alexei.roz at gmail.com> wrote: > > > On Sun, Jun 3, 2018 at 4:51 PM Rowland Penny via samba
2018 Jun 03
1
chrony configuration for secondary samba DC
But according to following command output chrony on my samba dc already serves the windows clients: alexei at ubuntu-dc:~$ sudo chronyc clients Hostname NTP Drop Int IntL Last Cmd Drop Int Last =============================================================================== 192.168.0.45 4 0 7 - 501 0 0 - - 192.168.0.72
2018 Jun 03
4
chrony configuration for secondary samba DC
On Sun, Jun 3, 2018 at 4:51 PM Rowland Penny via samba <samba at lists.samba.org> wrote: > > On Sun, 3 Jun 2018 16:29:04 +0300 > Alexei Rozenvaser via samba <samba at lists.samba.org> wrote: > > > Hi > > > > I'm running samba 4.7.6 on ubuntu 18.04 as (backup / secondary) domain > > controller > > No your not, you are just running Samba as
2018 Jun 03
2
chrony configuration for secondary samba DC
Am 03.06.2018 um 16:48 schrieb Rowland Penny via samba: > On Sun, 3 Jun 2018 17:37:45 +0300 > Alexei Rozenvaser <alexei.roz at gmail.com> wrote: > >> The output is: >> alexei at ubuntu-dc:~$ sudo samba -b | grep 'SIGND' >> NTP_SIGND_SOCKET_DIR: /var/lib/samba/ntp_signd > > First three letters are NTP and at the moment, Samba only supports the
2018 Jun 03
5
chrony configuration for secondary samba DC
Hi I'm running samba 4.7.6 on ubuntu 18.04 as (backup / secondary) domain controller that joined to an Existing Active Directory (Windows 2012R2 server). The question is about Time Synchronization across the domain. How should I configure chrony v3.2 in order to provide time synchronization: 1. between main Windows DC and Samba DC 2. Between Samba DC and windows clients in case when
2001 Dec 11
2
Rsyncd limits
Hi all, I was wondering if it will require any major rewrites of the daemon/client to include limits on the data transfer rate ? Alexei.
2018 Jun 03
2
chrony configuration for secondary samba DC
On Sun, Jun 3, 2018 at 4:51 PM Rowland Penny via samba <samba at lists.samba.org> wrote: > > On Sun, 3 Jun 2018 16:29:04 +0300 > Alexei Rozenvaser via samba <samba at lists.samba.org> wrote: > > > Hi > > > > I'm running samba 4.7.6 on ubuntu 18.04 as (backup / secondary) domain > > controller > > No your not, you are just running Samba as
2015 Aug 05
2
[LLVMdev] Cc llvmdev: Re: llvm bpf debug info. Re: [RFC PATCH v4 3/3] bpf: Introduce function for outputing data to perf event
Hi, Alexei On 2015/7/30 1:13, Alexei Starovoitov wrote: > On 7/29/15 2:38 AM, He Kuang wrote: >> Hi, Alexei >> >> On 2015/7/28 10:18, Alexei Starovoitov wrote: >>> On 7/25/15 3:04 AM, He Kuang wrote: >>>> I noticed that for 64-bit elf format, the reloc sections have >>>> 'Addend' in the entry, but there's no 'Addend' info
2018 Jun 03
3
chrony configuration for secondary samba DC
How you so sure about it? Even at https://packages.ubuntu.com/bionic/samba chrony mentioned as suggested related package . On Sun, Jun 3, 2018 at 6:13 PM Rowland Penny via samba <samba at lists.samba.org> wrote: > > On Sun, 3 Jun 2018 16:59:38 +0200 > Reindl Harald via samba <samba at lists.samba.org> wrote: > > > > > > > Am 03.06.2018 um 16:48 schrieb
2018 Jun 07
3
chrony configuration for secondary samba DC
DC that doesn't holding PDC emulator FSMO role should sync it's time with DC that holdings such role. Right? But I can understand how it works in case of samba DC without PDC emulator FSMO role and with NTP server configured according to https://wiki.samba.org/index.php/Time_Synchronisation#Set_up_the_ntpd.conf_File_on_a_DC . Doesn't it create conflict between samba potential to sync
2018 Jun 07
2
chrony configuration for secondary samba DC
It wasn't particularly Chrony related question. The question applies to Samba DC that not holds PDC emulator FSMO role with any NTP server. On Thu, Jun 7, 2018 at 12:12 PM Rowland Penny via samba <samba at lists.samba.org> wrote: > > On Thu, 7 Jun 2018 11:56:16 +0300 > Alexei Rozenvaser <alexei.roz at gmail.com> wrote: > > > DC that doesn't holding PDC
2009 Feb 18
2
[LLVMdev] Patch: Prefix for ParseCommandLineOptions()
The motivation behind this patch is that tools that use LLVM as a library and want to use its command line parsing facilities may not want all the various options defined in the LLVM libraries to be available - simply because they may not be relevant. This patch adds an optional "Prefix" parameter to ParseCommandLineOptions(). If set, this will make inaccessible any options that do not
2015 Jun 09
2
[LLVMdev] Make BPF backend non-experimental?
On 5 June 2015 at 19:46, Eric Christopher <echristo at gmail.com> wrote: > 1) Alexei has been very active on the port, fixing problems unprompted > 2) As one of the people who've had to had on it in the last few months it > wasn't an issue to keep up to date with the other ports. +1! cheers, --renato
2019 Aug 07
2
Adding nops after ret
Hi, Is is possible via clang plugin (clang configuration) to add 4 nops after ret instruction on Intel64? Thanks, Alexei -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190807/229ecbf4/attachment.html>
2018 Jun 07
3
chrony configuration for secondary samba DC
On Thu, 7 Jun 2018 10:12:23 +0100 Rowland Penny via samba <samba at lists.samba.org> wrote: > On Thu, 7 Jun 2018 11:56:16 +0300 > Alexei Rozenvaser <alexei.roz at gmail.com> wrote: > > > DC that doesn't holding PDC emulator FSMO role should sync it's time > > with DC that holdings such role. Right? > > But I can understand how it works in case of